Fix pointer declaration botch.

This commit is contained in:
Simon Kelley committed 2016-03-01 17:00:26 +00:00
1 parent 7aa3f9af66
commit 4b6af5d53f
1 file changed
+2 -2
+2 -2
View File
@@ -323,12 +323,12 @@ int expand_workspace(unsigned char ***wkspc, int *szp, int new)
new += 5;
if (!(p = whine_malloc(new * sizeof(unsigned char **))))
if (!(p = whine_malloc(new * sizeof(unsigned char *))))
return 0;
if (old != 0 && *wkspc)
{
memcpy(p, *wkspc, old * sizeof(unsigned char **));
memcpy(p, *wkspc, old * sizeof(unsigned char *));
free(*wkspc);
}