diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/string/strsep.3 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/string/strsep.3 b/lib/libc/string/strsep.3 index fd10494..7950135 100644 --- a/lib/libc/string/strsep.3 +++ b/lib/libc/string/strsep.3 @@ -86,7 +86,8 @@ char **ap, *argv[10], *inputstring; for (ap = argv; (*ap = strsep(&inputstring, " \et")) != NULL;) if (**ap != '\e0') - ++ap; + if (++ap >= &argv[10]) + break; .Ed .Sh HISTORY The |