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

@@ -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;