mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +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)
|
if (i == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
if (i == 0)
|
||||||
|
return n;
|
||||||
|
|
||||||
n += i;
|
n += i;
|
||||||
|
|
||||||
} while (n < (int)bytes);
|
} while (n < (int)bytes);
|
||||||
|
|
||||||
|
return n;
|
||||||
#else
|
#else
|
||||||
return read(fh, buffer, bytes);
|
return read(fh, buffer, bytes);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user