diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-11-18 04:17:48 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-11-18 04:17:48 +0100 |
commit | 3128d6de943709e32d0c53c07e3dbeba0827da25 (patch) | |
tree | a1558d63769f78ffd54233866ed03ff6bff79a3b | |
parent | split out string/strn/ from string/str/ (diff) | |
download | slibc-3128d6de943709e32d0c53c07e3dbeba0827da25.tar.gz slibc-3128d6de943709e32d0c53c07e3dbeba0827da25.tar.bz2 slibc-3128d6de943709e32d0c53c07e3dbeba0827da25.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | src/string/str/strpbrk.c | 2 |
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++)) |