diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libc/string/strnlen.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libc/string/strnlen.c b/src/lib/libc/string/strnlen.c index 5c99994744..0c6df381fc 100644 --- a/src/lib/libc/string/strnlen.c +++ b/src/lib/libc/string/strnlen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: strnlen.c,v 1.1 2010/05/18 22:24:55 tedu Exp $ */ | 1 | /* $OpenBSD: strnlen.c,v 1.2 2010/05/21 06:57:45 chl Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com> | 4 | * Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com> |
@@ -24,7 +24,6 @@ size_t | |||
24 | strnlen(const char *str, size_t maxlen) | 24 | strnlen(const char *str, size_t maxlen) |
25 | { | 25 | { |
26 | const char *cp, *ep; | 26 | const char *cp, *ep; |
27 | size_t len; | ||
28 | 27 | ||
29 | ep = str + maxlen; | 28 | ep = str + maxlen; |
30 | for (cp = str; cp < ep && *cp != '\0'; cp++) | 29 | for (cp = str; cp < ep && *cp != '\0'; cp++) |