]> diplodocus.org Git - nmh/blobdiff - uip/fmttest.c
Sigh. Fix up missing conversion from clear->ti_clear.
[nmh] / uip / fmttest.c
index f08583e0819b102c50f533baa4070eb98b96d75c..b39d0d527b4a753c5698b9059456f18207f1d9c8 100644 (file)
@@ -1168,11 +1168,8 @@ static void
 litputc(char c)
 {
        if (c & ~ 0177) {
-               putc('M', stdout);
-               putc('-', stdout);
-               c &= 0177;
-       }
-       if (c < 0x20 || c == 0177) {
+               printf("\\x%02x", (unsigned char) c);
+       } else if (c < 0x20 || c == 0177) {
                if (c == '\b') {
                        putc('\\', stdout);
                        putc('b', stdout);