This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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][AVR] fix unsafe uses of sprintf


Hi Denver,

"Denver Gingerich" <denver@ossguy.com> writes:
-	sprintf (buf, xyz);
+	sprintf (buf, "%s", xyz);

Andreas Schwab wrote:
Or strcpy.

Point. I have checked in Andreas's version of the patch.


Cheers
  Nick

opcodes/ChangeLog
2008-11-06  Nick Clifton  <nickc@redhat.com>

	* avr-dis.c: Replace uses of sprintf without a format string with
	calls to strcpy.


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