diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-03-29 20:55:02 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-03-29 20:55:02 +0800 |
commit | c6ee7e02e1c9832dae2d2724812972d7b1bed68e (patch) | |
tree | a06060e41131e999c5b8eca2d2c023fe22b76d51 /sysutils/gnome-control-center1/files | |
parent | 236c8ea5bf0e0c13d516020f1e5a28a6dd22c6ec (diff) | |
download | freebsd-ports-graphics-c6ee7e02e1c9832dae2d2724812972d7b1bed68e.tar.gz freebsd-ports-graphics-c6ee7e02e1c9832dae2d2724812972d7b1bed68e.tar.zst freebsd-ports-graphics-c6ee7e02e1c9832dae2d2724812972d7b1bed68e.zip |
Don't try to free() statically allocated array.
PR: 36426
Submitted by: Joe Marcus Clarke <marcus@marcuscom.com>
Diffstat (limited to 'sysutils/gnome-control-center1/files')
-rw-r--r-- | sysutils/gnome-control-center1/files/patch-capplets::theme-switcher::lister.c | 15 |
1 files changed, 15 insertions, 0 deletions
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 00000000000..ce817037012 --- /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 |