mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
([StdioStream -readBytes:length:]): Don't assert that we get as many
bytes as we asked for. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1620 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
eb65ab3506
commit
445444b81f
1 changed files with 2 additions and 0 deletions
|
@ -149,6 +149,7 @@ o_vscanf (void *stream,
|
|||
{
|
||||
/* xxx Check error conditions. */
|
||||
int ret = fread (b, 1, len, fp);
|
||||
#if 0 /* No. Sometimes we don't get as much as we asked for, and that ok. */
|
||||
if (ret != len)
|
||||
{
|
||||
printf ("Read bytes differ.\n");
|
||||
|
@ -157,6 +158,7 @@ o_vscanf (void *stream,
|
|||
format: @"Tried to read from eof"];
|
||||
}
|
||||
assert (ret == len);
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue