]> git.stg.codes - stg.git/commitdiff
Fix accessing array element above array bounds in rsconf
authorMaxim Mamontov <faust.madf@gmail.com>
Wed, 31 Aug 2011 10:00:32 +0000 (13:00 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Wed, 31 Aug 2011 10:00:32 +0000 (13:00 +0300)
projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp

index 9ec72a1c1aa67f628c45e7af0dc72d9f1de23f37..b4cbf544aa82f169049691fbfeef316251a31547 100644 (file)
@@ -461,7 +461,7 @@ while (1)
         }
 
     char buffer[8];
-    buffer[8] = 0;
+    buffer[7] = 0;
 
     DecodeString(buffer, bufferS, &ctx);
     requestList.push_back(std::string(buffer, pos));