From 4c00bbed4d2a3d412433dad05d3851e1b89ca07c Mon Sep 17 00:00:00 2001 From: Ianos Gnatiuc Date: Mon, 5 Jun 2006 19:03:40 +0000 Subject: [PATCH] Fixed infinite loop when parsing template, if @random token file was not found. --- golded3/gerand.cpp | 1 + 1 file changed, 1 insertion(+) 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);