openbsd-ports/graphics/imlib/patches/patch-gdk_imlib_io-xpm_c
2009-01-09 16:21:42 +00:00

13 lines
457 B
Plaintext

$OpenBSD: patch-gdk_imlib_io-xpm_c,v 1.2 2009/01/09 16:21:42 naddy Exp $
--- gdk_imlib/io-xpm.c.orig Mon Mar 4 18:06:29 2002
+++ gdk_imlib/io-xpm.c Fri Jan 9 17:20:41 2009
@@ -136,7 +136,7 @@ loader_xpm(FILE *file, int *w, int *h, int *t)
if (line[k] != ' ')
{
s[0] = 0;
- sscanf(&line[k], "%256s", s);
+ sscanf(&line[k], "%255s", s);
slen = strlen(s);
k += slen;
if (!strcmp(s, "c"))