Fixed problem in my_read()

SVN revision: 1671
This commit is contained in:
Stefan Ritt 2006-03-06 08:39:09 +00:00
parent 3b45b11b74
commit dc5f1181ab

View File

@ -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