From b1ab1cf276d35703768fef93f623c056ed9fd5d9 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Tue, 4 Jan 2022 18:51:16 +0300 Subject: [PATCH] [miniupnpc] Fix build on Debian Bullseye --- libs/miniupnpc/upnpreplyparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/miniupnpc/upnpreplyparse.c b/libs/miniupnpc/upnpreplyparse.c index c72b4c825f..ab2b87ecb7 100644 --- a/libs/miniupnpc/upnpreplyparse.c +++ b/libs/miniupnpc/upnpreplyparse.c @@ -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';