]> granicus.if.org Git - file/commitdiff
remove bogus comment and code about nul terminated buf.
authorChristos Zoulas <christos@zoulas.com>
Mon, 20 Dec 2004 19:48:59 +0000 (19:48 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 20 Dec 2004 19:48:59 +0000 (19:48 +0000)
src/compress.c

index ea98ce851232c43b54eb5d8b59a62654b2174f15..78fcf42abbc8535044bb2a1f702c73d0fbd786ce 100644 (file)
@@ -50,7 +50,7 @@
 #endif
 
 #ifndef lint
-FILE_RCSID("@(#)$Id: compress.c,v 1.39 2004/12/13 20:20:48 christos Exp $")
+FILE_RCSID("@(#)$Id: compress.c,v 1.40 2004/12/20 19:48:59 christos Exp $")
 #endif
 
 
@@ -314,9 +314,6 @@ uncompressbuf(struct magic_set *ms, size_t method, const unsigned char *old,
        int fdin[2], fdout[2];
        int r;
 
-       /* The buffer is NUL terminated, and we don't need that. */
-       n--;
-        
 #ifdef HAVE_LIBZ
        if (method == 2)
                return uncompressgzipped(ms, old, newch, n);