=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/stringlist.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/ftp/stringlist.c 2006/04/25 05:45:20 1.7 --- src/usr.bin/ftp/stringlist.c 2007/09/02 15:19:32 1.8 *************** *** 1,4 **** ! /* $OpenBSD: stringlist.c,v 1.7 2006/04/25 05:45:20 tedu Exp $ */ /* $NetBSD: stringlist.c,v 1.2 1997/01/17 07:26:20 lukem Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: stringlist.c,v 1.8 2007/09/02 15:19:32 deraadt Exp $ */ /* $NetBSD: stringlist.c,v 1.2 1997/01/17 07:26:20 lukem Exp $ */ /* *************** *** 33,39 **** */ #if defined(LIBC_SCCS) && !defined(lint) && !defined(SMALL) ! static const char rcsid[] = "$OpenBSD: stringlist.c,v 1.7 2006/04/25 05:45:20 tedu Exp $"; #endif /* LIBC_SCCS and not lint and not SMALL */ #include --- 33,39 ---- */ #if defined(LIBC_SCCS) && !defined(lint) && !defined(SMALL) ! static const char rcsid[] = "$OpenBSD: stringlist.c,v 1.8 2007/09/02 15:19:32 deraadt Exp $"; #endif /* LIBC_SCCS and not lint and not SMALL */ #include *************** *** 57,63 **** sl->sl_cur = 0; sl->sl_max = _SL_CHUNKSIZE; ! sl->sl_str = malloc(sl->sl_max * sizeof(char *)); if (sl->sl_str == NULL) err(1, "stringlist"); return sl; --- 57,63 ---- sl->sl_cur = 0; sl->sl_max = _SL_CHUNKSIZE; ! sl->sl_str = calloc(sl->sl_max, sizeof(char *)); if (sl->sl_str == NULL) err(1, "stringlist"); return sl;