]> git.jsancho.org Git - lugaru.git/commitdiff
fix length for strncmp()
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>
Tue, 20 Dec 2016 14:49:23 +0000 (15:49 +0100)
committerRémi Verschelde <rverschelde@gmail.com>
Tue, 20 Dec 2016 17:39:57 +0000 (18:39 +0100)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Source/User/Settings.cpp

index 42b719bed187199b742e98d73d8b95ac1f91e0aa..2b4dadc872a7661c9be3ac22e60756a3b51cbc46 100644 (file)
@@ -241,7 +241,7 @@ bool LoadSettings()
             ipstream >> damageeffects;
         } else if ( !strncmp(setting, "Text", 4) ) {
             ipstream >> texttoggle;
-        } else if ( !strncmp(setting, "Devtools", 5) ) {
+        } else if ( !strncmp(setting, "Devtools", 6) ) {
             ipstream >> devtools;
         } else if ( !strncmp(setting, "Show Points", 11) ) {
             ipstream >> showpoints;