Fixed crash on received M_GET command

This commit is contained in:
Michiel Broek 2005-09-01 17:56:36 +00:00
parent af4ab62459
commit 28161e0997
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ v0.71.5 18-Aug-2005
mbcico:
Only disallow GZ/BZ2 compression by default if both zlib and
bzlib are not present.
Fixed crash on received m_get command.
mbfido:
Removed debug logging for solved crash.

View File

@ -2276,7 +2276,7 @@ int binkp_process_messages(void)
lsize = atoi(strtok(NULL, " \n\r"));
ltime = atoi(strtok(NULL, " \n\r"));
loffs = atoi(strtok(NULL, " \n\r"));
snprintf(ropts, 512, "%s", strtok(NULL, " \n\r"));
snprintf(ropts, 512, "%s", printable(strtok(NULL, " \n\r\0"), 0));
Syslog('b', "Binkp: m_file options \"%s\"", ropts);
if (strcmp((char *)"GZ", ropts) == 0)
rmode = CompGZ;