diff options
author | Christos Zoulas <christos@zoulas.com> | 2004-12-20 19:48:59 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2004-12-20 19:48:59 +0000 |
commit | 66255bcfe69c93d7c6ef44baa192cf9bcc5d61ad (patch) | |
tree | 4362883a722c2d18d6bc29ce91bccf678b0081e1 | |
parent | 21def36a80f3fb97c9df4efc5b5c7d1dc5e28e4d (diff) | |
download | file-git-66255bcfe69c93d7c6ef44baa192cf9bcc5d61ad.tar.gz |
remove bogus comment and code about nul terminated buf.
-rw-r--r-- | src/compress.c | 5 |
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); |