Fixed script newline handling for Windows(tested by profi200 on Windows).
This commit is contained in:
parent
90282a6508
commit
85bfcea19f
|
@ -422,6 +422,8 @@ int parse_script(FILE *fscript)
|
|||
|
||||
strptr = strchr(linebuf, '\n');
|
||||
if(strptr)*strptr = 0;
|
||||
strptr = strchr(linebuf, '\r');
|
||||
if(strptr)*strptr = 0;
|
||||
|
||||
if(strlen(linebuf)==0 || linebuf[0]=='#')
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue