From: Thomas Debesse Date: Sat, 28 Mar 2020 00:52:57 +0000 (+0100) Subject: radiant/buildmenu: fixup, ref #138 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ae00fba56f348bebc62783f06334e838bf2d0aa8;p=xonotic%2Fnetradiant.git radiant/buildmenu: fixup, ref #138 --- diff --git a/radiant/build.cpp b/radiant/build.cpp index 9000f3b1..c060d08f 100644 --- a/radiant/build.cpp +++ b/radiant/build.cpp @@ -83,10 +83,10 @@ void evaluate( StringBuffer& output ){ const char *pattern = ".[ExecutableType]"; for ( const char *i = m_string.c_str(); *i != '\0'; ++i ) { - if ( strcmp( pattern, i ) == 0 ) + if ( strncmp( pattern, i, sizeof( pattern ) ) == 0 ) { output.push_string(""); - i += strlen( pattern ); + i += strlen( pattern ) - 1; } else {