From: skeezix Date: Mon, 23 Feb 2009 20:57:05 +0000 (-0500) Subject: Minor fix to tinyxml code X-Git-Tag: Release-2010-05/1~214 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0df441804c168e1c72a0a13c5c42fcbf5a8ca5c;p=pandora-libraries.git Minor fix to tinyxml code --- diff --git a/lib/pnd_tinyxml.cpp b/lib/pnd_tinyxml.cpp index 83f5082..5b2822e 100644 --- a/lib/pnd_tinyxml.cpp +++ b/lib/pnd_tinyxml.cpp @@ -96,6 +96,10 @@ unsigned char pnd_pxml_parse ( const char *pFilename, char *buffer, unsigned int if ( s ) { strcpy ( s, strdup(pElem->GetText())); app->icon = strdup(anotherbuffer); + } else if ( ( s = strrchr ( anotherbuffer, '/' ) ) ) { + s += 1; + strcpy ( s, strdup(pElem->GetText())); + app->exec = strdup(anotherbuffer); } }