=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/stringlist.c,v retrieving revision 1.1 retrieving revision 1.2 diff -c -r1.1 -r1.2 *** src/usr.bin/ftp/stringlist.c 1997/02/03 01:05:44 1.1 --- src/usr.bin/ftp/stringlist.c 1997/07/25 21:56:23 1.2 *************** *** 1,4 **** ! /* $OpenBSD: stringlist.c,v 1.1 1997/02/03 01:05:44 millert Exp $ */ /* $NetBSD: stringlist.c,v 1.2 1997/01/17 07:26:20 lukem Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: stringlist.c,v 1.2 1997/07/25 21:56:23 millert Exp $ */ /* $NetBSD: stringlist.c,v 1.2 1997/01/17 07:26:20 lukem Exp $ */ /* *************** *** 33,39 **** */ #if defined(LIBC_SCCS) && !defined(lint) ! static char *rcsid = "$OpenBSD: stringlist.c,v 1.1 1997/02/03 01:05:44 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include --- 33,39 ---- */ #if defined(LIBC_SCCS) && !defined(lint) ! static char *rcsid = "$OpenBSD: stringlist.c,v 1.2 1997/07/25 21:56:23 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include *************** *** 53,65 **** { StringList *sl = malloc(sizeof(StringList)); if (sl == NULL) ! _err(1, "stringlist: %m"); 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: %m"); return sl; } --- 53,65 ---- { StringList *sl = malloc(sizeof(StringList)); if (sl == NULL) ! err(1, "stringlist: %m"); 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: %m"); return sl; } *************** *** 76,82 **** sl->sl_max += _SL_CHUNKSIZE; sl->sl_str = realloc(sl->sl_str, sl->sl_max * sizeof(char *)); if (sl->sl_str == NULL) ! _err(1, "stringlist: %m"); } sl->sl_str[sl->sl_cur++] = name; } --- 76,82 ---- sl->sl_max += _SL_CHUNKSIZE; sl->sl_str = realloc(sl->sl_str, sl->sl_max * sizeof(char *)); if (sl->sl_str == NULL) ! err(1, "stringlist: %m"); } sl->sl_str[sl->sl_cur++] = name; }