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

Diff for /src/usr.bin/jot/jot.c between version 1.2 and 1.3

version 1.2, 1996/06/26 05:34:41 version 1.3, 1999/12/04 21:27:02
Line 138 
Line 138 
                         boring = 1;                          boring = 1;
                 case 'w':                  case 'w':
                         if ((*av)[2])                          if ((*av)[2])
                                 strcpy(format, *av + 2);                                  if (strlcpy(format, *av + 2, sizeof(format)) >=
                                       sizeof(format))
                                           error("-w word too long", "");
                         else if (!--ac)                          else if (!--ac)
                                 error("Need context word after -w or -b", "");                                  error("Need context word after -w or -b", "");
                         else                          else
Line 146 
Line 148 
                         break;                          break;
                 case 's':                  case 's':
                         if ((*av)[2])                          if ((*av)[2])
                                 strcpy(sepstring, *av + 2);                                  if (strlcpy(sepstring, *av + 2, sizeof(sepstring)) >=
                                       sizeof(sepstring))
                                           error("-s word too long", "");
                         else if (!--ac)                          else if (!--ac)
                                 error("Need string after -s", "");                                  error("Need string after -s", "");
                         else                          else

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