Skip to content

Commit

Permalink
fix crash when uploading save
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Feb 4, 2015
1 parent 4fa0296 commit 1840f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/HTTP.cpp
Expand Up @@ -936,7 +936,7 @@ char *http_multipart_post(const char *uri, const char *const *names, const char
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];
Expand Down

0 comments on commit 1840f4e

Please sign in to comment.