Fix segfault caused by passing a string literal pointer to mkstemp()

Submitted by:	Oki Sawada <oki@tamon.co.jp>
This commit is contained in:
Stephen Hurd 2014-10-30 07:47:05 +00:00
parent d65422eaa3
commit 35538ba361
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371724
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= pkg_cleanup
PORTVERSION= 2.0
PORTVERSION= 2.1
CATEGORIES= ports-mgmt
DISTFILES=

View file

@ -28,7 +28,7 @@ static char **pathv;
static bool uses_pkg;
static int menulen=0;
static int helpfile=-1;
static char *helpfname="/tmp/pkgcleanup.XXXX";
static char helpfname[]="/tmp/pkgcleanup.XXXX";
#ifdef OLD_DIALOG
typedef dialogMenuItem ListItem;