From 7e6c812d6b2b532e5673d546622e9c14eb1ca948 Mon Sep 17 00:00:00 2001 From: squall-leonhart Date: Wed, 25 May 2011 14:52:13 +0000 Subject: [PATCH] fixed a MSVC specific ism (mudlords own words) git-svn-id: https://svn.code.sf.net/p/vbam/code/branches/Pre-Wx@1022 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/common/memgzio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/memgzio.c b/src/common/memgzio.c index d500a1fe..114df5e1 100644 --- a/src/common/memgzio.c +++ b/src/common/memgzio.c @@ -706,8 +706,8 @@ long ZEXPORT memgzseek(gzFile file, long off, int whence) } // this is inefficient, but the best I can do without actually reading // the above code - char buf[80]; while(off > 0) { + char buf[80]; int r = memgzread(file, buf, off > 80 ? 80 : off); if(r <= 0) return -1;