Index: uspace/lib/compress/gzip.c
===================================================================
--- uspace/lib/compress/gzip.c	(revision e37ddde16660f8897030fbc536ff4ff973c03065)
+++ uspace/lib/compress/gzip.c	(revision b0ed2f43b8b81d685f04f4ee202eec4093c0b580)
@@ -32,4 +32,5 @@
 #include <malloc.h>
 #include <unistd.h>
+#include <byteorder.h>
 #include "gzip.h"
 #include "inflate.h"
@@ -103,5 +104,5 @@
 		return EINVAL;
 	
-	*destlen = footer.size;
+	*destlen = uint32_t_le2host(footer.size);
 	
 	/* Ignore extra metadata */
