]> git.jsancho.org Git - lugaru.git/commitdiff
Settings: Fix string length for strncmp (again)
authorRémi Verschelde <rverschelde@gmail.com>
Tue, 20 Dec 2016 17:47:01 +0000 (18:47 +0100)
committerRémi Verschelde <rverschelde@gmail.com>
Tue, 20 Dec 2016 17:47:04 +0000 (18:47 +0100)
Source/User/Settings.cpp

index 2b4dadc872a7661c9be3ac22e60756a3b51cbc46..49a1aa79f27f486e364ce1476fab724828dcbea2 100644 (file)
@@ -216,7 +216,7 @@ bool LoadSettings()
             ipstream >> mousejump;
         } else if ( !strncmp(setting, "Ambient sound", 13) ) {
             ipstream >> ambientsound;
-        } else if ( !strncmp(setting, "Blood ", 6) ) {
+        } else if ( !strncmp(setting, "Blood", 5) ) {
             ipstream >> bloodtoggle;
         } else if ( !strncmp(setting, "Auto slomo", 10) ) {
             ipstream >> autoslomo;
@@ -241,7 +241,7 @@ bool LoadSettings()
             ipstream >> damageeffects;
         } else if ( !strncmp(setting, "Text", 4) ) {
             ipstream >> texttoggle;
-        } else if ( !strncmp(setting, "Devtools", 6) ) {
+        } else if ( !strncmp(setting, "Devtools", 8) ) {
             ipstream >> devtools;
         } else if ( !strncmp(setting, "Show Points", 11) ) {
             ipstream >> showpoints;