]> mj.ucw.cz Git - libucw.git/commitdiff
Fastbuf: fw-hex escapes DEL, too
authorMartin Mares <mj@ucw.cz>
Wed, 8 Jul 2015 17:15:56 +0000 (19:15 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 8 Jul 2015 17:15:56 +0000 (19:15 +0200)
ucw/fw-hex.c

index 18e70ced77a82760ea87a36f35f3675acf373ad6..cd55be5eb2edd1f19ffc21a2f2f4166ee6558677 100644 (file)
@@ -29,7 +29,7 @@ fb_hex_spout(struct fastbuf *f)
   for (byte *p = f->buffer; p < f->bptr; p++)
     {
       uint c = *p;
-      if (c >= 0x21 && c <= 0x7f && c != '<' && c != '>')
+      if (c >= 0x21 && c <= 0x7e && c != '<' && c != '>')
        bputc(orig, c);
       else
        bprintf(orig, "<%02x>", c);