X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/15cd196134f4cf57907ba7c60f1fcd468c0fc6d1..682d1942bc6ada61a8f1e37221b0c8374e4355c5:/projects/sgconf/main.cpp diff --git a/projects/sgconf/main.cpp b/projects/sgconf/main.cpp index 5e52d37d..0a2e12b4 100644 --- a/projects/sgconf/main.cpp +++ b/projects/sgconf/main.cpp @@ -184,6 +184,8 @@ char * str; str = new char[strlen(c) + 1]; strncpy(str, c, strlen(c)); +str[strlen(c)] = 0; + msg = strchr(str, ':'); if (msg)