pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/gnome-panel Fix MAXNAMLEN usage to prefer NAME_MAX.
details: https://anonhg.NetBSD.org/pkgsrc/rev/05cf1d46c6fe
branches: trunk
changeset: 536880:05cf1d46c6fe
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Dec 27 15:29:32 2007 +0000
description:
Fix MAXNAMLEN usage to prefer NAME_MAX.
diffstat:
x11/gnome-panel/distinfo | 3 ++-
x11/gnome-panel/patches/patch-ac | 24 ++++++++++++++++++++++++
2 files changed, 26 insertions(+), 1 deletions(-)
diffs (41 lines):
diff -r 24c5e24768fe -r 05cf1d46c6fe x11/gnome-panel/distinfo
--- a/x11/gnome-panel/distinfo Thu Dec 27 15:13:20 2007 +0000
+++ b/x11/gnome-panel/distinfo Thu Dec 27 15:29:32 2007 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.39 2007/12/16 12:05:46 drochner Exp $
+$NetBSD: distinfo,v 1.40 2007/12/27 15:29:32 joerg Exp $
SHA1 (gnome-panel-2.20.2.tar.bz2) = d3bf83e825afc47e620129f63b0fd00229ef12a7
RMD160 (gnome-panel-2.20.2.tar.bz2) = e883139c8c873290e7d854c1a45642ff0d34c2a8
Size (gnome-panel-2.20.2.tar.bz2) = 2835817 bytes
SHA1 (patch-aa) = 602ceea87d5861aa1400268e1a1e189c7281ddac
SHA1 (patch-ab) = 961186c5db258557294fae4a280d13efdcfe1de1
+SHA1 (patch-ac) = 266fbb403a11c4776a17cd257d3f577b97f01c66
diff -r 24c5e24768fe -r 05cf1d46c6fe x11/gnome-panel/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gnome-panel/patches/patch-ac Thu Dec 27 15:29:32 2007 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-ac,v 1.7 2007/12/27 15:29:32 joerg Exp $
+
+--- gnome-panel/panel-util.c.orig 2007-12-27 13:36:58.000000000 +0000
++++ gnome-panel/panel-util.c
+@@ -18,6 +18,7 @@
+
+ #include <dirent.h>
+ #include <string.h>
++#include <limits.h>
+ #include <unistd.h>
+ #include <sys/types.h>
+
+@@ -856,7 +857,11 @@ panel_make_unique_desktop_path_from_name
+ {
+ int num = 1;
+ char *path = NULL;
++#ifdef NAME_MAX
++ char filename[NAME_MAX];
++#else
+ char filename[MAXNAMLEN];
++#endif
+
+ /* g_file_set_contents() use "%s.XXXXXX"
+ * FIXME: waiting for http://bugzilla.gnome.org/show_bug.cgi?id=437977 */
Home |
Main Index |
Thread Index |
Old Index