From 76fbcfdd66556dfe8e813cda50ac28071d0da573 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 14 Mar 1998 09:27:24 +0000 Subject: Update. 1998-03-14 00:52 Tim Waugh * posix/wordexp.c (parse_param): Perform field-splitting after expanding positional parameter. * posix/wordexp-tst.sh: Test that field-splitting is performed after expanding positional parameter. * posix/wordexp.c (parse_param): Fixed memory leak in field-splitting after parameter expansion. 1998-03-14 Ulrich Drepper * locale/programs/linereader.c (lr_token): Return EOF token at EOF. (get_toplvl_escape): Correctly terminate loop at EOF. Patch by Cristian Gafton . --- string/bits/string2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string') diff --git a/string/bits/string2.h b/string/bits/string2.h index 45c6112b55..3104f949ba 100644 --- a/string/bits/string2.h +++ b/string/bits/string2.h @@ -840,7 +840,7 @@ __strsep_g (char **__s, __const char *__reject) register char *__retval = *__s; if (__retval == NULL || *__retval == '\0') return NULL; - if ((*__s = strpbrk (__retval, __reject)) != '\0') + if ((*__s = strpbrk (__retval, __reject)) != NULL) *(*__s)++ = '\0'; return __retval; } -- cgit 1.4.1