Fixed infinite loop when parsing template, if @random token file was not found.
This commit is contained in:
parent
86c2e2973e
commit
4c00bbed4d
@ -34,6 +34,7 @@ char* GetRandomLine(char* __buf, size_t __bufsize, const char* file)
|
|||||||
Path indexfile;
|
Path indexfile;
|
||||||
Path __file;
|
Path __file;
|
||||||
|
|
||||||
|
strxcpy(__buf, "", __bufsize);
|
||||||
strxcpy(__file, file, sizeof(Path));
|
strxcpy(__file, file, sizeof(Path));
|
||||||
strschg_environ(__file);
|
strschg_environ(__file);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user