libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit e7cad0445e4360499de1dcb06df6e1074517e1c3
parent c6a73b72aa315a79f2d6ac79a2ef7070e7ba231e
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date:   Wed, 28 Feb 2018 10:00:41 +0100

eliminate strcat()

Diffstat:
Msrc/testcurl/test_callback.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/testcurl/test_callback.c b/src/testcurl/test_callback.c @@ -42,8 +42,7 @@ called_twice(void *cls, uint64_t pos, char *buf, size_t max) if (cls2->called == 0) { - memset(buf, 0, max); - strcat(buf, "test"); + memcpy(buf, "test", 5); cls2->called = 1; return strlen(buf); }