mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
[miniupnpc] Fix build on Debian Bullseye
This commit is contained in:
parent
5b38db4fa6
commit
b1ab1cf276
@ -30,7 +30,7 @@ NameValueParserGetData(void * d, const char * datas, int l)
|
|||||||
nv = malloc(sizeof(struct NameValue));
|
nv = malloc(sizeof(struct NameValue));
|
||||||
if(l>63)
|
if(l>63)
|
||||||
l = 63;
|
l = 63;
|
||||||
strncpy(nv->name, data->curelt, 64);
|
memcpy(nv->name, data->curelt, 64);
|
||||||
nv->name[63] = '\0';
|
nv->name[63] = '\0';
|
||||||
memcpy(nv->value, datas, l);
|
memcpy(nv->value, datas, l);
|
||||||
nv->value[l] = '\0';
|
nv->value[l] = '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user