fixed tools.c:flushModeBuffer (used uninitialized chars)
authorpk910 <philipp@zoelle1.de>
Wed, 5 Oct 2011 11:41:37 +0000 (13:41 +0200)
committerpk910 <philipp@zoelle1.de>
Wed, 5 Oct 2011 11:41:37 +0000 (13:41 +0200)
src/tools.c

index a961d62ab2e4f2c44ef1b7ed3078299fd7ca0446..cce88797ec697c70cc847f352178ed546304c8a3 100644 (file)
@@ -394,6 +394,7 @@ void flushModeBuffer(struct ModeBuffer *modeBuf) {
     char modeStr[MAXMODES+3];
     int modePos = 0;
     char paramStr[MAXLEN];
+    *paramStr = '\0';
     int paramPos = 0;
     int i;
     if(modeBuf->addCount) {