This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch 1/3] Code cleanup: strcpy + strlen -> sprintf
On Wed, 19 Oct 2011 00:09:50 +0200, Mark Kettenis wrote:
> > I hope it is not due to incompatible sprintf on
> > MS-Windows CE or some such gdbserver platform.
>
> Please use snprintf(3) instead of sprintf(3).
I am unfamiliar with gdbserver but there is no single use of snprintf while
75 uses of sprintf. Isn't it for some platform compatibility?
Thanks,
Jan