mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-20 07:01:27 +02:00
fix crash when uploading save
This commit is contained in:
@@ -936,7 +936,7 @@ retry:
|
|||||||
memset(map, 0, 62*sizeof(int));
|
memset(map, 0, 62*sizeof(int));
|
||||||
for (i=0; names[i]; i++)
|
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))
|
if (!blen || !memcmp(parts[i]+j, boundary, blen))
|
||||||
{
|
{
|
||||||
ch = parts[i][j+blen];
|
ch = parts[i][j+blen];
|
||||||
|
Reference in New Issue
Block a user