gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 01/04: eliminate strcat()


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 01/04: eliminate strcat()
Date: Wed, 28 Feb 2018 22:30:37 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository libmicrohttpd.

commit e7cad0445e4360499de1dcb06df6e1074517e1c3
Author: Tim Rühsen <address@hidden>
AuthorDate: Wed Feb 28 10:00:41 2018 +0100

    eliminate strcat()
---
 src/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
index 5b9daf0f..1c5e98d2 100644
--- 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);
     }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]