summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorPeter da Silva <pds@FreeBSD.org>1997-07-26 00:47:06 +0000
committerPeter da Silva <pds@FreeBSD.org>1997-07-26 00:47:06 +0000
commitdc1f820ee57bccaea88e1a4f58cc34ce07d7f814 (patch)
tree61b9984e615e034146a5906ce02c3d5ef53f936b /lib/libc
parentdd0ebb7f0885bf750046e63de672c73729c4b9dd (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/string/strsep.33
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/string/strsep.3 b/lib/libc/string/strsep.3
index fd104945c594..795013595ce7 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