]> granicus.if.org Git - zziplib/commitdiff
sdl api mismatch - better be stdio compliant on the return value too
authorGuido Draheim <guidod@gmx.de>
Sat, 27 Nov 2004 06:58:07 +0000 (06:58 +0000)
committerGuido Draheim <guidod@gmx.de>
Sat, 27 Nov 2004 06:58:07 +0000 (06:58 +0000)
 (SDL_rwops_zzip.c)

SDL/SDL_rwops_zzip.c

index 993bc1ffe983c7f2fdb5d682978de10c2c727776..b273a8114709c8ca10a04860c02df7025d6bb19e 100644 (file)
@@ -22,7 +22,7 @@ static int _zzip_seek(SDL_RWops *context, int offset, int whence)
 
 static int _zzip_read(SDL_RWops *context, void *ptr, int size, int maxnum)
 {
-    return zzip_read(SDL_RWOPS_ZZIP_FILE(context), ptr, size*maxnum);
+    return zzip_read(SDL_RWOPS_ZZIP_FILE(context), ptr, size*maxnum) / size;
 }
 
 static int _zzip_write(SDL_RWops *context, const void *ptr, int size, int num)