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

Diff for /src/usr.bin/deroff/deroff.c between version 1.8 and 1.9

version 1.8, 2009/10/27 23:59:37 version 1.9, 2014/12/03 16:44:55
Line 745 
Line 745 
 inpic(void)  inpic(void)
 {  {
         int c1;          int c1;
         char *p1;          char *p1, *ep;
   
         SKIP;          SKIP;
         p1 = line;          p1 = line;
           ep = line + sizeof(line) - 1;
         c = '\n';          c = '\n';
         for (;;) {          for (;;) {
                 c1 = c;                  c1 = c;
Line 781 
Line 782 
                                                 continue;                                                  continue;
                                         ungetc(c, infile);                                          ungetc(c, infile);
                                         backsl();                                          backsl();
                                 } else                                  } else if (p1 + 1 >= ep) {
                                           errx(1, ".PS length exceeds limit");
                                   } else {
                                         *p1++ = c;                                          *p1++ = c;
                                   }
                         }                          }
                         *p1++ = ' ';                          *p1++ = ' ';
                 }                  }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9