want reader and writer to return the actual byte count, not item count
This commit is contained in:
parent
2ff0a5061b
commit
44be26b36f
|
@ -120,13 +120,13 @@ pic_funopen(void *cookie,
|
|||
static int
|
||||
file_read(void *cookie, char *ptr, int size)
|
||||
{
|
||||
return fread(ptr, size, 1, (FILE *)cookie);
|
||||
return fread(ptr, 1, size, (FILE *)cookie);
|
||||
}
|
||||
|
||||
static int
|
||||
file_write(void *cookie, const char *ptr, int size)
|
||||
{
|
||||
return fwrite(ptr, size, 1, (FILE *)cookie);
|
||||
return fwrite(ptr, 1, size, (FILE *)cookie);
|
||||
}
|
||||
|
||||
static fpos_t
|
||||
|
|
Loading…
Reference in New Issue