diff --git a/golded3/gerand.cpp b/golded3/gerand.cpp index b7793d3..a5e4164 100644 --- a/golded3/gerand.cpp +++ b/golded3/gerand.cpp @@ -34,6 +34,7 @@ char* GetRandomLine(char* __buf, size_t __bufsize, const char* file) Path indexfile; Path __file; + strxcpy(__buf, "", __bufsize); strxcpy(__file, file, sizeof(Path)); strschg_environ(__file);