]> diplodocus.org Git - nmh/blobdiff - sbr/fmt_compile.c
Added cpytrim() function. Unlike trimcpy(), it does not modify
[nmh] / sbr / fmt_compile.c
index 9ef3946748cf932b977fdfff2b734deda81f67c3..0fd83d1e47af8333e305bb6ee037416418e3f9c3 100644 (file)
@@ -270,7 +270,7 @@ static struct ftable functable[] = {
 #define PUTC(c)                        do { NEW(FT_CHAR,0,0); fp->f_char = (c); } while (0)
 
 static char *format_string;
-static unsigned char *usr_fstring;     /* for CERROR */
+static char *usr_fstring;      /* for CERROR */
 
 #define CERROR(str) compile_error (str, cp)
 
@@ -321,7 +321,7 @@ compile_error(char *str, char *cp)
 
     for (i = errpos-errctx; i < errpos; i++) {
 #ifdef LOCALE
-       if (iscntrl(usr_fstring[i]))
+       if (iscntrl((unsigned char) usr_fstring[i]))
 #else
        if (usr_fstring[i] < 32)
 #endif