diff options
author | dim <dim@FreeBSD.org> | 2013-12-22 14:14:53 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-12-22 14:14:53 +0000 |
commit | a73ec90252c3b4c5ac79fcc9a8d1bae2c12e9b83 (patch) | |
tree | 16a2667a5780b5f295a8e006085a1cedb7f9aff8 /contrib/file | |
parent | aa0067c72ba0f8efb5e50b79a4d59d2a93631bb2 (diff) | |
download | FreeBSD-src-a73ec90252c3b4c5ac79fcc9a8d1bae2c12e9b83.zip FreeBSD-src-a73ec90252c3b4c5ac79fcc9a8d1bae2c12e9b83.tar.gz |
Apply upstream commit 33312fd828e59c78ae4ee30fd70d0ca109748cf0 (by
zoulasc) to contrib/file:
don't write a char to a pointer.
MFC after: 3 days
Diffstat (limited to 'contrib/file')
-rw-r--r-- | contrib/file/compress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/file/compress.c b/contrib/file/compress.c index 4308abf..2d8d77f 100644 --- a/contrib/file/compress.c +++ b/contrib/file/compress.c @@ -480,7 +480,7 @@ uncompressbuf(struct magic_set *ms, int fd, size_t method, #endif free(*newch); n = 0; - newch[0] = '\0'; + *newch = NULL; goto err; } else { n = r; |