svn commit: r259724 - head/contrib/file
Dimitry Andric
dim at FreeBSD.org
Sun Dec 22 14:14:53 UTC 2013
Author: dim
Date: Sun Dec 22 14:14:53 2013
New Revision: 259724
URL: http://svnweb.freebsd.org/changeset/base/259724
Log:
Apply upstream commit 33312fd828e59c78ae4ee30fd70d0ca109748cf0 (by
zoulasc) to contrib/file:
don't write a char to a pointer.
MFC after: 3 days
Modified:
head/contrib/file/compress.c
Modified: head/contrib/file/compress.c
==============================================================================
--- head/contrib/file/compress.c Sun Dec 22 14:13:00 2013 (r259723)
+++ head/contrib/file/compress.c Sun Dec 22 14:14:53 2013 (r259724)
@@ -480,7 +480,7 @@ uncompressbuf(struct magic_set *ms, int
#endif
free(*newch);
n = 0;
- newch[0] = '\0';
+ *newch = NULL;
goto err;
} else {
n = r;
More information about the svn-src-head
mailing list