diff options
| author | Martin Blapp <mbr@FreeBSD.org> | 2003-01-27 22:36:53 +0000 |
|---|---|---|
| committer | Martin Blapp <mbr@FreeBSD.org> | 2003-01-27 22:36:53 +0000 |
| commit | 555f4cffb0d5115648a6f6fb4403d83d04a29573 (patch) | |
| tree | e898175442a7314108fd11138697a35dfc71e43b /lib/libc | |
| parent | 77335102aa5afe0f77b51692f9866629f0ace8fc (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/rpc/getnetpath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/getnetpath.c b/lib/libc/rpc/getnetpath.c index 087cb300353a..474d3e0fbec9 100644 --- a/lib/libc/rpc/getnetpath.c +++ b/lib/libc/rpc/getnetpath.c @@ -249,9 +249,9 @@ int token; /* char to parse string for */ /* * did find a token, but it might be escaped. */ - if (cp[-1] == '\\') { + if ((cp > npp) && (cp[-1] == '\\')) { /* if slash was also escaped, carry on, otherwise find next token */ - if (cp[-2] != '\\') { + if ((cp > npp + 1) && (cp[-2] != '\\')) { /* shift r-o-s onto the escaped token */ strcpy(&cp[-1], cp); /* XXX: overlapping string copy */ /* |
