gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: better use memcpy


From: gnunet
Subject: [libmicrohttpd] branch master updated: better use memcpy
Date: Thu, 12 Dec 2019 14:33:01 +0100

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

grothoff pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 4cd47bcc better use memcpy
4cd47bcc is described below

commit 4cd47bcc3c1ea57bb37b7dc400d8f9f98d499c2a
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Dec 12 14:29:59 2019 +0100

    better use memcpy
---
 src/microhttpd/digestauth.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index fe078009..98ce433a 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -480,9 +480,9 @@ lookup_sub_value (char *dest,
         if (size > len)
           size = len;
         size--;
-        strncpy (dest,
-                 q1,
-                 size);
+        memcpy (dest,
+                q1,
+                size);
         dest[size] = '\0';
         return size;
       }

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



reply via email to

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