aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2008-08-11 19:46:48 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2008-08-11 19:46:48 +0000
commit1115f16ecf876c1e7cdbbe47578fe277ebdcf571 (patch)
tree1636cf0e39eaf41b8f09bd5080fed201abde0c19 /ports-mgmt
parent0ca4b25ebafaff8995267b2787bee33076a29140 (diff)
downloadports-1115f16ecf876c1e7cdbbe47578fe277ebdcf571.tar.gz
ports-1115f16ecf876c1e7cdbbe47578fe277ebdcf571.zip
- Fix segfaults due to typo in malloc() invocation
PR: ports/126338 Submitted by: Shota Iwazaki <iwazaki8 at yahoo dot co dot jp> Approved by: Stephen Hurd <shurd at sasktel dot net> (maintainer) Approved by: miwi (mentor implicit)
Notes
Notes: svn path=/head/; revision=218418
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/pkg_cleanup/Makefile1
-rw-r--r--ports-mgmt/pkg_cleanup/files/pkg_cleanup.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ports-mgmt/pkg_cleanup/Makefile b/ports-mgmt/pkg_cleanup/Makefile
index 25d22ec83b03..e8ea64828409 100644
--- a/ports-mgmt/pkg_cleanup/Makefile
+++ b/ports-mgmt/pkg_cleanup/Makefile
@@ -7,6 +7,7 @@
PORTNAME= pkg_cleanup
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= ports-mgmt
DISTFILES=
diff --git a/ports-mgmt/pkg_cleanup/files/pkg_cleanup.c b/ports-mgmt/pkg_cleanup/files/pkg_cleanup.c
index 1027557759d3..1f191676ed46 100644
--- a/ports-mgmt/pkg_cleanup/files/pkg_cleanup.c
+++ b/ports-mgmt/pkg_cleanup/files/pkg_cleanup.c
@@ -208,7 +208,7 @@ int remove_ports(void)
pid_t child;
int status;
- args=(char **)malloc(menulen+2 * sizeof(char *));
+ args=(char **)malloc((menulen+2) * sizeof(char *));
if(!args) {
init_dialog();
dialog_msgbox("ERROR", "Can not allocate memory for package list!", 5, 45, TRUE);