Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.
Moderators: cheriff, Herben
-
denver
- Posts: 3
- Joined: Wed Apr 14, 2004 3:48 am
- Location: Granada, Spain
Post
by denver »
The next code avalaible at ps2lib 2.1:
Code: Select all
case '\n':
fioLseek(fd, i-read, SEEK_CUR);
i++;
buff[i]=0; // terminate after newline
return i;
.............
should be:
Code: Select all
case '\n':
fioLseek(fd, (i+1)-read, SEEK_CUR);
buff[i]=0;
return i;
..............
where the main change is that fioLseek doesn't read again the character \n and thus the function does not remain reading eternally :roll:
-
mrbrown
- Site Admin
- Posts: 1537
- Joined: Sat Jan 17, 2004 11:24 am
Post
by mrbrown »
Fixed, thanks!