diff --git a/glaxium_0.5/variables.cpp b/glaxium_0.5/variables.cpp index a42254f..23fefa5 100644 --- a/glaxium_0.5/variables.cpp +++ b/glaxium_0.5/variables.cpp @@ -451,8 +451,8 @@ char* GlaxiumVariables::getFullOptionsPath() { return "glaxiumrc"; #else static char strReturn[1024]; - strcpy(strReturn, getenv("HOME")); - strcat(strReturn, "/.glaxiumrc"); + snprintf(strReturn, sizeof(strReturn), "%s/.glaxiumrc", getenv("HOME")); + return strReturn; #endif }