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

Diff for /src/usr.bin/chpass/edit.c between version 1.13 and 1.14

version 1.13, 1998/03/30 06:59:31 version 1.14, 1998/05/28 10:17:49
Line 203 
Line 203 
         }          }
         (void)fclose(fp);          (void)fclose(fp);
   
           if (list[E_NAME].save == NULL)
                   list[E_NAME].save = "";
           if (list[E_BPHONE].save == NULL)
                   list[E_BPHONE].save = "";
           if (list[E_HPHONE].save == NULL)
                   list[E_HPHONE].save = "";
           if (list[E_LOCATE].save == NULL)
                   list[E_LOCATE].save = "";
   
         /* Build the gecos field. */          /* Build the gecos field. */
         len = strlen(list[E_NAME].save) + strlen(list[E_BPHONE].save) +          len = strlen(list[E_NAME].save) + strlen(list[E_BPHONE].save) +
             strlen(list[E_HPHONE].save) + strlen(list[E_LOCATE].save) + 4;              strlen(list[E_HPHONE].save) + strlen(list[E_LOCATE].save) + 4;

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