want reader and writer to return the actual byte count, not item count
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user