mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed problem in my_read()
SVN revision: 1671
This commit is contained in:
parent
3b45b11b74
commit
dc5f1181ab
@ -569,9 +569,14 @@ int my_read(int fh, void *buffer, unsigned int bytes)
|
||||
if (i == -1)
|
||||
return -1;
|
||||
|
||||
if (i == 0)
|
||||
return n;
|
||||
|
||||
n += i;
|
||||
|
||||
} while (n < (int)bytes);
|
||||
|
||||
return n;
|
||||
#else
|
||||
return read(fh, buffer, bytes);
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user