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
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: jan dot kratochvil at redhat dot com
- Cc: gdb-patches at sourceware dot org, ppluzhnikov at google dot com
- Date: Wed, 19 Oct 2011 00:09:50 +0200 (CEST)
- Subject: Re: [patch 1/3] Code cleanup: strcpy + strlen -> sprintf
- References: <20111018205108.GA31533@host1.jankratochvil.net>
>
> Hi,
>
> I do not understand much the reasons, maybe a fear about violating C
> sequence points. 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).