svn commit: r259852 - in stable: 10/contrib/file 8/contrib/file 9/contrib/file

Dimitry Andric dim at FreeBSD.org
Wed Dec 25 00:48:09 UTC 2013


Author: dim
Date: Wed Dec 25 00:48:08 2013
New Revision: 259852
URL: http://svnweb.freebsd.org/changeset/base/259852

Log:
  MFC r259724:
  
  Apply upstream commit 33312fd828e59c78ae4ee30fd70d0ca109748cf0 (by
  zoulasc) to contrib/file:
  
    don't write a char to a pointer.

Modified:
  stable/8/contrib/file/compress.c
Directory Properties:
  stable/8/contrib/file/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/contrib/file/compress.c
  stable/9/contrib/file/compress.c
Directory Properties:
  stable/10/   (props changed)
  stable/9/contrib/file/   (props changed)

Modified: stable/8/contrib/file/compress.c
==============================================================================
--- stable/8/contrib/file/compress.c	Wed Dec 25 00:40:42 2013	(r259851)
+++ stable/8/contrib/file/compress.c	Wed Dec 25 00:48:08 2013	(r259852)
@@ -470,7 +470,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-all mailing list