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

Diff for /src/usr.bin/mg/Attic/random.c between version 1.19 and 1.20

version 1.19, 2006/06/01 09:54:08 version 1.20, 2006/06/01 10:10:00
Line 75 
Line 75 
 getcolpos(void)  getcolpos(void)
 {  {
         int     col, i, c;          int     col, i, c;
           char tmp[5];
   
         /* determine column */          /* determine column */
         col = 0;          col = 0;
Line 90 
Line 91 
                         col++;                          col++;
                 } else if (ISCTRL(c) != FALSE)                  } else if (ISCTRL(c) != FALSE)
                         col += 2;                          col += 2;
                 else if (isprint(c))                  else if (isprint(c)) {
                         col++;                          col++;
                 else {                  } else {
                         char tmp[5];                          col += snprintf(tmp, sizeof(tmp), "\\%o", c);
                         snprintf(tmp, sizeof(tmp), "\\%o", c);  
                         col += strlen(tmp);  
                 }                  }
   
         }          }

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20