diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-03-29 12:55:02 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-03-29 12:55:02 +0000 |
commit | c6ee7e02e1c9832dae2d2724812972d7b1bed68e (patch) | |
tree | a06060e41131e999c5b8eca2d2c023fe22b76d51 /sysutils | |
parent | 236c8ea5bf0e0c13d516020f1e5a28a6dd22c6ec (diff) | |
download | FreeBSD-ports-c6ee7e02e1c9832dae2d2724812972d7b1bed68e.zip FreeBSD-ports-c6ee7e02e1c9832dae2d2724812972d7b1bed68e.tar.gz |
Don't try to free() statically allocated array.
PR: 36426
Submitted by: Joe Marcus Clarke <marcus@marcuscom.com>
Diffstat (limited to 'sysutils')
8 files changed, 64 insertions, 4 deletions
diff --git a/sysutils/gnome-control-center/Makefile b/sysutils/gnome-control-center/Makefile index 573ed5c..afd41e0 100644 --- a/sysutils/gnome-control-center/Makefile +++ b/sysutils/gnome-control-center/Makefile @@ -7,7 +7,7 @@ PORTNAME= gnomecontrolcenter PORTVERSION= 1.4.0.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/control-center diff --git a/sysutils/gnome-control-center/files/patch-capplets::theme-switcher::lister.c b/sysutils/gnome-control-center/files/patch-capplets::theme-switcher::lister.c new file mode 100644 index 0000000..ce81703 --- /dev/null +++ b/sysutils/gnome-control-center/files/patch-capplets::theme-switcher::lister.c @@ -0,0 +1,15 @@ + +$FreeBSD$ + +--- capplets/theme-switcher/lister.c 2002/03/29 12:43:59 1.1 ++++ capplets/theme-switcher/lister.c 2002/03/29 12:45:18 +@@ -115,8 +115,7 @@ + char *errstring = NULL; + int out_fd; + #ifndef HAVE_GETLINE +- char line[1024]; +- char *lineptr = line; ++ char *lineptr = (char *)malloc(1024); + #else + char *lineptr = NULL; + #endif diff --git a/sysutils/gnome-control-center1/Makefile b/sysutils/gnome-control-center1/Makefile index 573ed5c..afd41e0 100644 --- a/sysutils/gnome-control-center1/Makefile +++ b/sysutils/gnome-control-center1/Makefile @@ -7,7 +7,7 @@ PORTNAME= gnomecontrolcenter PORTVERSION= 1.4.0.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/control-center diff --git a/sysutils/gnome-control-center1/files/patch-capplets::theme-switcher::lister.c b/sysutils/gnome-control-center1/files/patch-capplets::theme-switcher::lister.c new file mode 100644 index 0000000..ce81703 --- /dev/null +++ b/sysutils/gnome-control-center1/files/patch-capplets::theme-switcher::lister.c @@ -0,0 +1,15 @@ + +$FreeBSD$ + +--- capplets/theme-switcher/lister.c 2002/03/29 12:43:59 1.1 ++++ capplets/theme-switcher/lister.c 2002/03/29 12:45:18 +@@ -115,8 +115,7 @@ + char *errstring = NULL; + int out_fd; + #ifndef HAVE_GETLINE +- char line[1024]; +- char *lineptr = line; ++ char *lineptr = (char *)malloc(1024); + #else + char *lineptr = NULL; + #endif diff --git a/sysutils/gnomecontrolcenter/Makefile b/sysutils/gnomecontrolcenter/Makefile index 573ed5c..afd41e0 100644 --- a/sysutils/gnomecontrolcenter/Makefile +++ b/sysutils/gnomecontrolcenter/Makefile @@ -7,7 +7,7 @@ PORTNAME= gnomecontrolcenter PORTVERSION= 1.4.0.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/control-center diff --git a/sysutils/gnomecontrolcenter/files/patch-capplets::theme-switcher::lister.c b/sysutils/gnomecontrolcenter/files/patch-capplets::theme-switcher::lister.c new file mode 100644 index 0000000..ce81703 --- /dev/null +++ b/sysutils/gnomecontrolcenter/files/patch-capplets::theme-switcher::lister.c @@ -0,0 +1,15 @@ + +$FreeBSD$ + +--- capplets/theme-switcher/lister.c 2002/03/29 12:43:59 1.1 ++++ capplets/theme-switcher/lister.c 2002/03/29 12:45:18 +@@ -115,8 +115,7 @@ + char *errstring = NULL; + int out_fd; + #ifndef HAVE_GETLINE +- char line[1024]; +- char *lineptr = line; ++ char *lineptr = (char *)malloc(1024); + #else + char *lineptr = NULL; + #endif diff --git a/sysutils/gnomecontrolcenter2/Makefile b/sysutils/gnomecontrolcenter2/Makefile index 573ed5c..afd41e0 100644 --- a/sysutils/gnomecontrolcenter2/Makefile +++ b/sysutils/gnomecontrolcenter2/Makefile @@ -7,7 +7,7 @@ PORTNAME= gnomecontrolcenter PORTVERSION= 1.4.0.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/control-center diff --git a/sysutils/gnomecontrolcenter2/files/patch-capplets::theme-switcher::lister.c b/sysutils/gnomecontrolcenter2/files/patch-capplets::theme-switcher::lister.c new file mode 100644 index 0000000..ce81703 --- /dev/null +++ b/sysutils/gnomecontrolcenter2/files/patch-capplets::theme-switcher::lister.c @@ -0,0 +1,15 @@ + +$FreeBSD$ + +--- capplets/theme-switcher/lister.c 2002/03/29 12:43:59 1.1 ++++ capplets/theme-switcher/lister.c 2002/03/29 12:45:18 +@@ -115,8 +115,7 @@ + char *errstring = NULL; + int out_fd; + #ifndef HAVE_GETLINE +- char line[1024]; +- char *lineptr = line; ++ char *lineptr = (char *)malloc(1024); + #else + char *lineptr = NULL; + #endif |