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

Diff for /src/usr.bin/infocmp/infocmp.c between version 1.17 and 1.18

version 1.17, 2003/04/08 19:08:58 version 1.18, 2006/12/06 04:59:58
Line 630 
Line 630 
                 (void) strlcat(buf2, ";", sizeof buf2);                  (void) strlcat(buf2, ";", sizeof buf2);
             } while              } while
                 ((ep = strtok((char *) 0, ";")));                  ((ep = strtok((char *) 0, ";")));
             buf2[strlen(buf2) - 1] = '\0';              if (buf2[0] != '\0' && buf2[strlen(buf2) - 1] == ';')
                       buf2[strlen(buf2) - 1] = '\0';
             expansion = buf2;              expansion = buf2;
         }          }
   
Line 666 
Line 667 
             } while              } while
                 ((ep = strtok((char *) 0, ";")));                  ((ep = strtok((char *) 0, ";")));
   
             buf2[strlen(buf2) - 1] = '\0';              if (buf2[0] != '\0' && buf2[strlen(buf2) - 1] == ';')
                       buf2[strlen(buf2) - 1] = '\0';
             expansion = buf2;              expansion = buf2;
         }          }
         /* now check for scroll region reset */          /* now check for scroll region reset */

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18