From 3128d6de943709e32d0c53c07e3dbeba0827da25 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 18 Nov 2015 04:17:48 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/string/str/strpbrk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++)) -- cgit v1.2.3-70-g09d2