pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] Changes to pspp/src/groff-font.c


From: Ben Pfaff
Subject: [Pspp-cvs] Changes to pspp/src/groff-font.c
Date: Tue, 25 Oct 2005 00:28:19 -0400

Index: pspp/src/groff-font.c
diff -u pspp/src/groff-font.c:1.12 pspp/src/groff-font.c:1.13
--- pspp/src/groff-font.c:1.12  Sun Jul 31 21:42:46 2005
+++ pspp/src/groff-font.c       Tue Oct 25 04:28:17 2005
@@ -406,7 +406,7 @@
 static void
 scan_badchars (char *line, int len)
 {
-  unsigned char *cp = line;
+  char *cp = line;
 
   /* Same bad characters as Groff. */
   static unsigned char badchars[32] =
@@ -417,12 +417,15 @@
     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   };
 
-  for (; len--; cp++)
-    if (badchars[*cp >> 3] & (1 << (*cp & 7)))
-      {
-       font_msg (SE, _("Bad character \\%3o."), *cp);
-       *cp = ' ';
-      }
+  for (; len--; cp++) 
+    {
+      int c = (unsigned char) *cp;
+      if (badchars[c >> 3] & (1 << (c & 7)))
+        {
+          font_msg (SE, _("Bad character \\%3o."), *cp);
+          *cp = ' ';
+        } 
+    }
 }
 
 /* Character name hashing. */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]