Fixed infinite loop when parsing template, if @random token file was not found.

This commit is contained in:
Ianos Gnatiuc 2006-06-05 19:03:40 +00:00
parent 86c2e2973e
commit 4c00bbed4d

View File

@ -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);