[core] fix memset_s call (fixes #2698)

From: Stefan Bühler <stbuehler@web.de>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3064 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.39
Stefan Bühler 7 years ago
parent 53c4ab8438
commit 737d4f0f20

@ -4,6 +4,7 @@ NEWS
====
- 1.4.39
* [core] fix memset_s call (fixes #2698)
- 1.4.38 - 2015-12-05
* [stat-cache] fix handling of collisions, might have returned wrong data (fixes #2669)

@ -41,7 +41,7 @@ static void* safe_memset(void *s, int c, size_t n)
void safe_memclear(void *s, size_t n) {
#if defined(HAVE_MEMSET_S)
memset_s(s, 0, n);
memset_s(s, n, 0, n);
#elif defined(HAVE_EXPLICIT_BZERO)
explicit_bzero(s, n);
#else

Loading…
Cancel
Save