diff options
author | marcus <marcus@FreeBSD.org> | 2004-08-07 05:38:23 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-08-07 05:38:23 +0800 |
commit | 8dd8ba98dff285a992e37ceb1e80dce2de6b5aa4 (patch) | |
tree | d5345ed020fffc1fe1b5c584a0754d739df04084 /devel/desktop-file-utils | |
parent | 3c7a5e1279ee579a544a729442f809bc9ef52d8e (diff) | |
download | freebsd-ports-gnome-8dd8ba98dff285a992e37ceb1e80dce2de6b5aa4.tar.gz freebsd-ports-gnome-8dd8ba98dff285a992e37ceb1e80dce2de6b5aa4.tar.zst freebsd-ports-gnome-8dd8ba98dff285a992e37ceb1e80dce2de6b5aa4.zip |
Fix a bus error with malloc debugging enabled.
Reported by: adamw
Approved by: maintainer (implicit)
Diffstat (limited to 'devel/desktop-file-utils')
-rw-r--r-- | devel/desktop-file-utils/Makefile | 1 | ||||
-rw-r--r-- | devel/desktop-file-utils/files/patch-src::update-desktop-database.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/devel/desktop-file-utils/Makefile b/devel/desktop-file-utils/Makefile index 570a6895c23e..763a4e32fd96 100644 --- a/devel/desktop-file-utils/Makefile +++ b/devel/desktop-file-utils/Makefile @@ -7,6 +7,7 @@ PORTNAME= desktop-file-utils PORTVERSION= 0.7 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://freedesktop.org/Software/desktop-file-utils/releases/ diff --git a/devel/desktop-file-utils/files/patch-src::update-desktop-database.c b/devel/desktop-file-utils/files/patch-src::update-desktop-database.c new file mode 100644 index 000000000000..68de9906df66 --- /dev/null +++ b/devel/desktop-file-utils/files/patch-src::update-desktop-database.c @@ -0,0 +1,11 @@ +--- src/update-desktop-database.c.orig Fri Aug 6 17:36:29 2004 ++++ src/update-desktop-database.c Fri Aug 6 17:35:41 2004 +@@ -381,7 +381,7 @@ + + for (i = 0; data_dirs[i] != NULL; i++); + +- args = g_new (char *, i + 1); ++ args = g_new0 (char *, i + 1); + + for (i = 0; data_dirs[i] != NULL; i++) + args[i] = g_build_filename (data_dirs[i], "applications", NULL); |