From: Igor Gnatenko Date: Tue, 20 Dec 2016 14:49:23 +0000 (+0100) Subject: fix length for strncmp() X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=91a44029744d973bf72d9dda7ffc13d6e9fb7130;p=lugaru.git fix length for strncmp() Signed-off-by: Igor Gnatenko --- diff --git a/Source/User/Settings.cpp b/Source/User/Settings.cpp index 42b719b..2b4dadc 100644 --- a/Source/User/Settings.cpp +++ b/Source/User/Settings.cpp @@ -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;