From 28161e0997a291e513419cc36784b235f1a1f72c Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Thu, 1 Sep 2005 17:56:36 +0000 Subject: [PATCH] Fixed crash on received M_GET command --- ChangeLog | 1 + mbcico/binkp.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a74fc619..3c52dc04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/mbcico/binkp.c b/mbcico/binkp.c index 618c77a5..caca448a 100644 --- a/mbcico/binkp.c +++ b/mbcico/binkp.c @@ -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;