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

Diff for /src/usr.bin/ftp/stringlist.c between version 1.7 and 1.8

version 1.7, 2006/04/25 05:45:20 version 1.8, 2007/09/02 15:19:32
Line 57 
Line 57 
   
         sl->sl_cur = 0;          sl->sl_cur = 0;
         sl->sl_max = _SL_CHUNKSIZE;          sl->sl_max = _SL_CHUNKSIZE;
         sl->sl_str = malloc(sl->sl_max * sizeof(char *));          sl->sl_str = calloc(sl->sl_max, sizeof(char *));
         if (sl->sl_str == NULL)          if (sl->sl_str == NULL)
                 err(1, "stringlist");                  err(1, "stringlist");
         return sl;          return sl;

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