diff options
author | joerg <joerg@pkgsrc.org> | 2007-12-27 15:29:32 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-12-27 15:29:32 +0000 |
commit | 85970cf9f05b2034ec1c9e5c8607cd88717a4213 (patch) | |
tree | cbe89dadea6dca0171a0731668eb7b0276c1753c /x11 | |
parent | b7fb53763d9e07bb8eb927e0815b59a19638d4fb (diff) | |
download | pkgsrc-85970cf9f05b2034ec1c9e5c8607cd88717a4213.tar.gz |
Fix MAXNAMLEN usage to prefer NAME_MAX.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/gnome-panel/distinfo | 3 | ||||
-rw-r--r-- | x11/gnome-panel/patches/patch-ac | 24 |
2 files changed, 26 insertions, 1 deletions
diff --git a/x11/gnome-panel/distinfo b/x11/gnome-panel/distinfo index 0b8820eac58..a14b631332c 100644 --- a/x11/gnome-panel/distinfo +++ b/x11/gnome-panel/distinfo @@ -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 --git a/x11/gnome-panel/patches/patch-ac b/x11/gnome-panel/patches/patch-ac new file mode 100644 index 00000000000..f4e1f25fba6 --- /dev/null +++ b/x11/gnome-panel/patches/patch-ac @@ -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 */ |