Date: Wed, 25 Dec 2013 00:48:09 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r259852 - in stable: 10/contrib/file 8/contrib/file 9/contrib/file Message-ID: <201312250048.rBP0m9dZ055354@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312250048.rBP0m9dZ055354>