Merge pull request #4 from WinterMute/ftp_session_write_file_fix

fix check for 0 bytes written
This commit is contained in:
mtheall 2014-11-23 19:08:17 -06:00
commit b9916097b9

View File

@ -524,7 +524,7 @@ ftp_session_write_file(ftp_session_t *session)
console_print("FSFILE_Write: 0x%08X\n", (unsigned int)ret);
return -1;
}
else if(ret == 0)
else if(bytes == 0)
console_print("FSFILE_Write: wrote 0 bytes\n");
/* adjust file position */