X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0bd1fc824f16d5eca4db5c3901e8c20ade408786..941e7e46e15c1d0b168606ac218dc9cf2e6f7b92:/projects/sgconf/sginfo.cpp diff --git a/projects/sgconf/sginfo.cpp b/projects/sgconf/sginfo.cpp index c5ab3eaf..1c9048e7 100644 --- a/projects/sgconf/sginfo.cpp +++ b/projects/sgconf/sginfo.cpp @@ -185,6 +185,8 @@ char * str; str = new char[strlen(c) + 1]; strncpy(str, c, strlen(c)); +str[strlen(c)] = 0; + msg = strchr(str, ':'); if (msg)