fix crash when uploading save

This commit is contained in:
jacob1 2015-02-04 00:37:14 -05:00
parent 4fa02965bf
commit 1840f4e39c

View File

@ -936,7 +936,7 @@ retry:
memset(map, 0, 62*sizeof(int));
for (i=0; names[i]; i++)
{
for (size_t j=0; j<plens[i]-blen; j++)
for (ssize_t j=0; j<(ssize_t)plens[i]-blen; j++)
if (!blen || !memcmp(parts[i]+j, boundary, blen))
{
ch = parts[i][j+blen];