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

Diff for /src/usr.bin/fmt/fmt.c between version 1.14 and 1.15

version 1.14, 1999/12/15 05:34:33 version 1.15, 1999/12/30 18:00:42
Line 604 
Line 604 
   if (buf==NULL) { length=100; buf=XMALLOC(length); }    if (buf==NULL) { length=100; buf=XMALLOC(length); }
   while ((ch=getc(stream)) != '\n' && ch != EOF) {    while ((ch=getc(stream)) != '\n' && ch != EOF) {
     if (ch==' ') ++spaces_pending;      if (ch==' ') ++spaces_pending;
     else if (isprint(ch)) {      else if (!iscntrl(ch)) {
       while (len+spaces_pending >= length) {        while (len+spaces_pending >= length) {
         length*=2; buf=xrealloc(buf, length);          length*=2; buf=xrealloc(buf, length);
       }        }

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15