From 91a44029744d973bf72d9dda7ffc13d6e9fb7130 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 20 Dec 2016 15:49:23 +0100 Subject: [PATCH] fix length for strncmp() Signed-off-by: Igor Gnatenko --- Source/User/Settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5