diff options
| author | Dima Dorfman <dd@FreeBSD.org> | 2001-06-28 21:50:53 +0000 |
|---|---|---|
| committer | Dima Dorfman <dd@FreeBSD.org> | 2001-06-28 21:50:53 +0000 |
| commit | ff5f0dbc4116ecea47fcacf10db7f6807b6d063b (patch) | |
| tree | 150dc15bfe5ba692a72226867868aefb08158656 /lib/libc/gen/basename.c | |
| parent | cfb687fab8ecf48acd859ea676ae4d0c17156ffb (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen/basename.c')
| -rw-r--r-- | lib/libc/gen/basename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/basename.c b/lib/libc/gen/basename.c index b68ef3f1dd78..09998cf3c490 100644 --- a/lib/libc/gen/basename.c +++ b/lib/libc/gen/basename.c @@ -66,7 +66,7 @@ basename(path) while (startp > path && *(startp - 1) != '/') startp--; - if (endp - startp + 1 > sizeof(bname)) { + if (endp - startp + 2 > sizeof(bname)) { errno = ENAMETOOLONG; return(NULL); } |
