Fix strsep() implementation for Win32.

Missing an increment with leads to an infinite loop.

Bug identifed by Patrick Dussud <phdussud@hotmail.com>.
This commit is contained in:
Daniel Beer 2011-09-01 09:08:40 +12:00
parent 1a99daa84b
commit 06a6018559
1 changed files with 2 additions and 0 deletions

2
util.c
View File

@ -249,6 +249,8 @@ char *strsep(char **strp, const char *delim)
*strp = end;
return start;
}
d++;
}
end++;