From: Christos Zoulas Date: Mon, 20 Dec 2004 19:48:59 +0000 (+0000) Subject: remove bogus comment and code about nul terminated buf. X-Git-Tag: FILE5_05~835 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9862c1aae7b39ed958db09006752e8f3c891663;p=file remove bogus comment and code about nul terminated buf. --- diff --git a/src/compress.c b/src/compress.c index ea98ce85..78fcf42a 100644 --- a/src/compress.c +++ b/src/compress.c @@ -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);