This is the mail archive of the gdb-cvs@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]

src/gdb ChangeLog utils.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	palves@sourceware.org	2013-02-14 17:09:01

Modified files:
	gdb            : ChangeLog utils.c 

Log message:
	savestring: Rename parameter 'size' to 'len'.
	
	It's better to avoid needless confusion, and call string length,
	length, instead of size, which is usually used to refer to sizeof of
	the string (len+1):
	
	size_t len = strlen (str);
	size_t size = sizeof (str);
	
	Tested on x86_64 Fedora 17.
	
	2013-02-14  Pedro Alves  <palves@redhat.com>
	
	* utils.c (savestring): Rename parameter 'size' to 'len'.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15151&r2=1.15152
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/utils.c.diff?cvsroot=src&r1=1.290&r2=1.291


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