mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Fix pointer declaration botch.
This commit is contained in:
@@ -323,12 +323,12 @@ int expand_workspace(unsigned char ***wkspc, int *szp, int new)
|
|||||||
|
|
||||||
new += 5;
|
new += 5;
|
||||||
|
|
||||||
if (!(p = whine_malloc(new * sizeof(unsigned char **))))
|
if (!(p = whine_malloc(new * sizeof(unsigned char *))))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (old != 0 && *wkspc)
|
if (old != 0 && *wkspc)
|
||||||
{
|
{
|
||||||
memcpy(p, *wkspc, old * sizeof(unsigned char **));
|
memcpy(p, *wkspc, old * sizeof(unsigned char *));
|
||||||
free(*wkspc);
|
free(*wkspc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user