From 4c4cfa0ce7799372187ef762bfa0586a666bcf5e Mon Sep 17 00:00:00 2001 From: phintuka Date: Thu, 22 May 2008 10:35:44 +0000 Subject: Always init metadata to empty string regardless of used metadata fetching method (init was missing from old method, and if pipe command failed unintialized data was set to menu) --- tools/metainfo_menu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/metainfo_menu.c b/tools/metainfo_menu.c index dd26cf71..8400f451 100644 --- a/tools/metainfo_menu.c +++ b/tools/metainfo_menu.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: metainfo_menu.c,v 1.2 2008-05-22 10:33:40 phintuka Exp $ + * $Id: metainfo_menu.c,v 1.3 2008-05-22 10:35:44 phintuka Exp $ * */ @@ -40,6 +40,8 @@ void cMetainfoMenu::Display(void) { cOsdMenu::Display(); char metadata[4096]; + metadata[0] = 0; + #ifdef HAVE_EXTRACTOR_H EXTRACTOR_ExtractorList * plugins; EXTRACTOR_KeywordList * md_list; @@ -50,7 +52,6 @@ void cMetainfoMenu::Display(void) const char *key; char * buf; - strcpy(metadata, ""); while(md_list) { if((key=EXTRACTOR_getKeywordTypeAsString(md_list->keywordType))) { buf = strdup(md_list->keyword); -- cgit v1.2.3