This is the mail archive of the
glibc-cvs@sources.redhat.com
mailing list for the glibc project.
libc/stdlib getsubopt.c
- From: roland at sourceware dot org
- To: glibc-cvs at sources dot redhat dot com
- Date: 20 Sep 2004 20:56:05 -0000
- Subject: libc/stdlib getsubopt.c
CVSROOT: /cvs/glibc
Module name: libc
Changes by: roland@sources.redhat.com 2004-09-20 20:56:05
Modified files:
stdlib : getsubopt.c
Log message:
2004-09-18 Paul Eggert <eggert@cs.ucla.edu>
[BZ #391]
* stdlib/getsubopt.c: Merge fixes from gnulib.
(__strchrnul) [!_LIBC]: Define and include "strchrnul.c".
(getsubopt): Use prototypes, not K&R style.
Fix bug: memcmp(A,B,N) was being invoked on a memory block B
whose size might be smaller than N. Use strncmp to avoid the bug.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/stdlib/getsubopt.c.diff?cvsroot=glibc&r1=1.6&r2=1.7