From b0df441804c168e1c72a0a13c5c42fcbf5a8ca5c Mon Sep 17 00:00:00 2001 From: skeezix Date: Mon, 23 Feb 2009 15:57:05 -0500 Subject: [PATCH] Minor fix to tinyxml code --- lib/pnd_tinyxml.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); } } -- 2.39.5