mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
(__argz_extract): Add terminating 0 entry.
This commit is contained in:
@ -20,8 +20,8 @@
|
||||
|
||||
#include <argz.h>
|
||||
|
||||
/* Puts pointers to each string in ARGZ into ARGV, which must be large enough
|
||||
to hold them all. */
|
||||
/* Puts pointers to each string in ARGZ, plus a terminating 0 element, into
|
||||
ARGV, which must be large enough to hold them all. */
|
||||
void
|
||||
__argz_extract (char *argz, size_t len, char **argv)
|
||||
{
|
||||
@ -32,5 +32,6 @@ __argz_extract (char *argz, size_t len, char **argv)
|
||||
argz += part_len + 1;
|
||||
len -= part_len + 1;
|
||||
}
|
||||
*argv = 0;
|
||||
}
|
||||
weak_alias (__argz_extract, argz_extract)
|
||||
|
Reference in New Issue
Block a user