summaryrefslogtreecommitdiff
path: root/x11/gtk2/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gtk2/patches/patch-ad')
-rw-r--r--x11/gtk2/patches/patch-ad13
1 files changed, 13 insertions, 0 deletions
diff --git a/x11/gtk2/patches/patch-ad b/x11/gtk2/patches/patch-ad
new file mode 100644
index 00000000000..2396ce4d1da
--- /dev/null
+++ b/x11/gtk2/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.7 2004/05/19 12:46:10 wiz Exp $
+
+--- gdk-pixbuf/io-pnm.c.orig 2004-01-07 01:26:58.000000000 +0100
++++ gdk-pixbuf/io-pnm.c
+@@ -237,7 +237,7 @@ pnm_read_next_value (PnmIOBuffer *inbuf,
+ *word = '\0';
+
+ /* hmmm, there must be more data to this 'word' */
+- if (!g_ascii_isspace (*p) && (*p != '#') && (p - inptr < 128))
++ if (p == inend || (!g_ascii_isspace (*p) && (*p != '#') && (p - inptr < 128)))
+ return PNM_SUSPEND;
+
+ /* get the value */