From: RĂ©mi Verschelde Date: Tue, 20 Dec 2016 17:47:01 +0000 (+0100) Subject: Settings: Fix string length for strncmp (again) X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=6d9c82e9373d02dccdabe144f54d08750f732efc;p=lugaru.git Settings: Fix string length for strncmp (again) --- diff --git a/Source/User/Settings.cpp b/Source/User/Settings.cpp index 2b4dadc..49a1aa7 100644 --- a/Source/User/Settings.cpp +++ b/Source/User/Settings.cpp @@ -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;