From 66255bcfe69c93d7c6ef44baa192cf9bcc5d61ad Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Mon, 20 Dec 2004 19:48:59 +0000 Subject: [PATCH] remove bogus comment and code about nul terminated buf. --- src/compress.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); -- 2.40.0