aboutsummaryrefslogtreecommitdiffstats
path: root/src/string
diff options
context:
space:
mode:
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++))