megacd: fix sgets()

This commit is contained in:
Sergey Dvodnenko
2019-11-21 18:11:17 +02:00
committed by sorgelig
parent 4d83c7d5b9
commit b8ce636768
2 changed files with 1 additions and 56 deletions

View File

@@ -60,7 +60,7 @@ static int sgets(char *out, int sz, char **in)
instr++;
}
if (*instr) instr++;
while (*instr && *instr == 10) instr++;
*in = instr;
return cnt || *instr;