[BACK]Return to charset.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Diff for /src/usr.bin/less/charset.c between version 1.3 and 1.4

version 1.3, 2001/11/19 19:02:14 version 1.4, 2003/03/13 09:09:32
Line 278 
Line 278 
   
         c &= 0377;          c &= 0377;
         if (!control_char(c))          if (!control_char(c))
                 sprintf(buf, "%c", c);                  snprintf(buf, sizeof buf, "%c", c);
         else if (c == ESC)          else if (c == ESC)
                 sprintf(buf, "ESC");                  snprintf(buf, sizeof buf, "ESC");
         else if (c < 128 && !control_char(c ^ 0100))          else if (c < 128 && !control_char(c ^ 0100))
                 sprintf(buf, "^%c", c ^ 0100);                  snprintf(buf, sizeof buf, "^%c", c ^ 0100);
         else          else
                 sprintf(buf, binfmt, c);                  snprintf(buf, sizeof buf, binfmt, c);
         return (buf);          return (buf);
 }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4