summaryrefslogtreecommitdiffstats
path: root/src/file_gz.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-02-01 20:54:44 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-02-01 20:54:44 +0100
commitc4f158b6ffc7460b036abf233131e22a0daaf8d8 (patch)
treea16c6190273abb887600ce64de6945d090ffdad5 /src/file_gz.c
parentfe300381a64405ebfa8c9eb5a45cefe24515d20c (diff)
Fix some missing headers for cygwin
Diffstat (limited to 'src/file_gz.c')
-rw-r--r--src/file_gz.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/file_gz.c b/src/file_gz.c
index a4155f3..6799337 100644
--- a/src/file_gz.c
+++ b/src/file_gz.c
@@ -96,11 +96,15 @@ static int header_check_gz(const unsigned char *buffer, const unsigned int buffe
}
if((flags&GZ_FNAME)!=0)
{
- while(off<buffer_size && buffer[off++]!='\0');
+ while(off<buffer_size && buffer[off++]!='\0')
+ {
+ }
}
if((flags&GZ_FCOMMENT)!=0)
{
- while(off<buffer_size && buffer[off++]!='\0');
+ while(off<buffer_size && buffer[off++]!='\0')
+ {
+ }
}
if((flags&GZ_FHCRC)!=0)
{