aboutsummaryrefslogtreecommitdiffstats
path: root/src/string/str/strpbrk.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-18 04:17:48 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-18 04:17:48 +0100
commit3128d6de943709e32d0c53c07e3dbeba0827da25 (patch)
treea1558d63769f78ffd54233866ed03ff6bff79a3b /src/string/str/strpbrk.c
parentsplit out string/strn/ from string/str/ (diff)
downloadslibc-3128d6de943709e32d0c53c07e3dbeba0827da25.tar.gz
slibc-3128d6de943709e32d0c53c07e3dbeba0827da25.tar.bz2
slibc-3128d6de943709e32d0c53c07e3dbeba0827da25.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/string/str/strpbrk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/str/strpbrk.c b/src/string/str/strpbrk.c
index 8499d31..e479dae 100644
--- a/src/string/str/strpbrk.c
+++ b/src/string/str/strpbrk.c
@@ -36,7 +36,7 @@ char* (strpbrk)(const char* string, const char* stopset)
char set[256];
char c;
const char* s = string;
- memset(set, 0, 256);
+ memset(set, 0, 256 * sizeof(char));
while ((c = *stopset++))
set[(size_t)c] = 1;
while ((c = *s++))