=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cdio/cddb.c,v retrieving revision 1.12 retrieving revision 1.13 diff -c -r1.12 -r1.13 *** src/usr.bin/cdio/cddb.c 2007/05/01 01:26:12 1.12 --- src/usr.bin/cdio/cddb.c 2007/09/02 15:19:31 1.13 *************** *** 1,4 **** ! /* $OpenBSD: cddb.c,v 1.12 2007/05/01 01:26:12 jdixon Exp $ */ /* * Copyright (c) 2002 Marc Espie. * --- 1,4 ---- ! /* $OpenBSD: cddb.c,v 1.13 2007/09/02 15:19:31 deraadt Exp $ */ /* * Copyright (c) 2002 Marc Espie. * *************** *** 329,335 **** } } else if (strcmp(line, "200") != 0 || !further_query(cout, type)) goto end; ! result = malloc(sizeof(char *) * (n + 1)); if (!result) goto end; for (i = 0; i <= n; i++) --- 329,335 ---- } } else if (strcmp(line, "200") != 0 || !further_query(cout, type)) goto end; ! result = calloc(sizeof(char *), n + 1); if (!result) goto end; for (i = 0; i <= n; i++)