This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch 1/3] Code cleanup: strcpy + strlen -> sprintf


> 
> 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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]