summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2004-12-20 19:48:59 +0000
committerChristos Zoulas <christos@zoulas.com>2004-12-20 19:48:59 +0000
commit66255bcfe69c93d7c6ef44baa192cf9bcc5d61ad (patch)
tree4362883a722c2d18d6bc29ce91bccf678b0081e1
parent21def36a80f3fb97c9df4efc5b5c7d1dc5e28e4d (diff)
downloadfile-git-66255bcfe69c93d7c6ef44baa192cf9bcc5d61ad.tar.gz
remove bogus comment and code about nul terminated buf.
-rw-r--r--src/compress.c5
1 files changed, 1 insertions, 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);