This is the mail archive of the gdb-patches@sources.redhat.com 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, rfc] Fix Wformat-nonlit prob with dsrec.c


Hello,

This fixes a format-nonliteral warning in dsrec.c. It also eliminates the sprintf replacing it with snprintf.

I should note that I don't have access to a m/c that uses srecords so `it looks ok ...'. I'm looking to commit this in a few days.

I've checked this in.


Andrew


2003-08-10 Andrew Cagney <cagney@redhat.com>

	* Makefile.in (dsrec.o): Update dependencies.
	* dsrec.c: Include "gdb_assert.h".
	(make_srec): Use snprintf instead of sprintf, use a literal format
	string.




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