diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-03-29 12:55:02 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-03-29 12:55:02 +0000 |
commit | 8bb66e82a0b100a587eeb4059a8f868f7be729d5 (patch) | |
tree | 1809ded3c15d760c661236de410471c2efbb1bc7 /sysutils/gnome-control-center | |
parent | Improved startup script. It now creates the PID file and fixes (diff) |
Don't try to free() statically allocated array.
PR: 36426
Submitted by: Joe Marcus Clarke <marcus@marcuscom.com>
Notes
Notes:
svn path=/head/; revision=56867
Diffstat (limited to 'sysutils/gnome-control-center')
-rw-r--r-- | sysutils/gnome-control-center/Makefile | 2 | ||||
-rw-r--r-- | sysutils/gnome-control-center/files/patch-capplets::theme-switcher::lister.c | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/sysutils/gnome-control-center/Makefile b/sysutils/gnome-control-center/Makefile index 573ed5c088f2..afd41e098a06 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 000000000000..ce8170370123 --- /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 |