2004-09-18 Paul Eggert <eggert@cs.ucla.edu>
authorroland <roland>
Mon, 20 Sep 2004 20:56:05 +0000 (20:56 +0000)
committerroland <roland>
Mon, 20 Sep 2004 20:56:05 +0000 (20:56 +0000)
commit8f6041e0b8eb0515202835fcd6aff6004b323e0a
treee112b962aef024e26b3e7a24022285c3a406ee28
parent7dca2a2c1759e6a1f8eb3d2c101201c452785096
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.
stdlib/getsubopt.c