summaryrefslogtreecommitdiff
path: root/wm/afterstep/patches/patch-libAfterStep_parser__xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'wm/afterstep/patches/patch-libAfterStep_parser__xml.c')
-rw-r--r--wm/afterstep/patches/patch-libAfterStep_parser__xml.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/wm/afterstep/patches/patch-libAfterStep_parser__xml.c b/wm/afterstep/patches/patch-libAfterStep_parser__xml.c
new file mode 100644
index 00000000000..cf70acd8e6e
--- /dev/null
+++ b/wm/afterstep/patches/patch-libAfterStep_parser__xml.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-libAfterStep_parser__xml.c,v 1.1 2016/05/01 19:26:35 dholland Exp $
+
+Use ctype.h correctly.
+
+--- libAfterStep/parser_xml.c~ 2006-07-18 17:36:36.000000000 +0000
++++ libAfterStep/parser_xml.c
+@@ -186,7 +186,7 @@ statement2xml_elem (ConfigDef * config)
+ }else if (get_flags(pterm->flags, TF_INDEXED))
+ {
+ int i = 0 ;
+- while( isdigit(ptr[i]) ) ++i;
++ while( isdigit((unsigned char)ptr[i]) ) ++i;
+ if( i > 0 )
+ {
+ index = mystrndup(ptr, i);