]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[miniupnpc] Fix build on Debian Bullseye
authorAndrey Volk <andywolk@gmail.com>
Tue, 4 Jan 2022 15:51:16 +0000 (18:51 +0300)
committerAndrey Volk <andywolk@gmail.com>
Tue, 9 Aug 2022 19:54:24 +0000 (22:54 +0300)
libs/miniupnpc/upnpreplyparse.c

index c72b4c825f1170e520e3626cdb571890ae7fc488..ab2b87ecb7c787308abbc5594880fd934a520a80 100644 (file)
@@ -30,7 +30,7 @@ NameValueParserGetData(void * d, const char * datas, int l)
     nv = malloc(sizeof(struct NameValue));
     if(l>63)
         l = 63;
-    strncpy(nv->name, data->curelt, 64);
+    memcpy(nv->name, data->curelt, 64);
        nv->name[63] = '\0';
     memcpy(nv->value, datas, l);
     nv->value[l] = '\0';