mirror of
https://github.com/wiiu-env/ropgadget_patternfinder.git
synced 2024-12-12 12:24:37 +01:00
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
Block a user