On 11/20/2012 01:55 AM, David Kramer wrote:

You probably want sprintf, which is like printf except it outputs a
string instead of writing the output to stdout.

http://www.cplusplus.com/reference/clibrary/cstdio/sprintf/

You never, ever, really never, want to use sprintf in any program. Each and every occurrence of "sprintf" should be replaced by snprintf as soon as possible. The sprintf call is unbounded is a stability risk as well as a potential security hole.


_______________________________________________
Hardwarehacking mailing list
[email protected]
http://lists.blu.org/mailman/listinfo/hardwarehacking

_______________________________________________
Hardwarehacking mailing list
[email protected]
http://lists.blu.org/mailman/listinfo/hardwarehacking

Reply via email to