diff --git a/src/cd-info.c b/src/cd-info.c index ef0589d3..6e2e3dca 100644 --- a/src/cd-info.c +++ b/src/cd-info.c @@ -1,5 +1,5 @@ /* - $Id: cd-info.c,v 1.149 2007/06/16 20:12:16 rocky Exp $ + $Id: cd-info.c,v 1.150 2007/12/30 15:09:00 rocky Exp $ Copyright (C) 2003, 2004, 2005, 2007 Rocky Bernstein Copyright (C) 1996, 1997, 1998 Gerd Knorr @@ -539,7 +539,7 @@ print_iso9660_recurse (CdIo_t *p_cdio, const char pathname[], iso9660_stat_t *p_statbuf = _cdio_list_node_data (entnode); char *psz_iso_name = p_statbuf->filename; char _fullname[4096] = { 0, }; - char translated_name[MAX_ISONAME+1]; + char *translated_name = (char *) alloca(strlen(psz_iso_name+1)); if (yep != p_statbuf->rr.b3_rock || 1 == opts.no_rock_ridge) { iso9660_name_translate_ext(psz_iso_name, translated_name, diff --git a/src/iso-info.c b/src/iso-info.c index 100eed04..132e33a6 100644 --- a/src/iso-info.c +++ b/src/iso-info.c @@ -1,5 +1,5 @@ /* - $Id: iso-info.c,v 1.35 2006/03/17 19:36:54 rocky Exp $ + $Id: iso-info.c,v 1.36 2007/12/30 15:09:00 rocky Exp $ Copyright (C) 2004, 2005, 2006 Rocky Bernstein @@ -224,7 +224,7 @@ print_iso9660_recurse (iso9660_t *p_iso, const char psz_path[]) iso9660_stat_t *p_statbuf = _cdio_list_node_data (entnode); char *psz_iso_name = p_statbuf->filename; char _fullname[4096] = { 0, }; - char translated_name[MAX_ISONAME+1]; + char *translated_name = (char *) alloca(strlen(psz_iso_name+1)); if (yep != p_statbuf->rr.b3_rock || 1 == opts.no_rock_ridge) { iso9660_name_translate_ext(psz_iso_name, translated_name,