[lttng-dev] [RFC PATCH 1/2] Add -ust to the name of UST threads of the application
Raphaël Beamonte
raphael.beamonte at gmail.com
Fri Jun 3 14:13:24 UTC 2016
Hi Sebastien,
2016-06-02 9:14 GMT-04:00 Sebastien Boisvert <sboisvert at gydle.com>:
>> + sprintf(name, "%s%s", name, "-ust");
>
> The objects can not overlap, otherwise, the behavior is undefined:
>
> "If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined." [1]
>
>
> [1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/sprintf.html
Thanks! Will fix that!
Raphaël
More information about the lttng-dev
mailing list