Alan Coopersmith wrote:
> Damien Carbery wrote:
>> In totem 2.21.0 there are two references to asprintf().
>> This function does not appear to be in Solaris.
>
> 4508459: Solaris should have asprintf() and vasprintf() functions
>
>> +#else
>> + newtext = malloc (sizeof (char *) * 2056);
>> + sprintf(newtext, "%s%s", subnode->data, text);
>> +#endif
>
> Shouldn't those be snprintf to make sure you don't overflow the buffer
> you allocated? (Also, I heard someone mention on IRC that Erwann had
> a more complete asprintf() replacement in his compiz port.)
>
For compiz fusion I'm duplicating the asprintf implementation in a patch
see in spec-file-extra patches/compiz-fusion-main-01-solaris-port.diff
HTH,
Erwann