Minor fix to tinyxml code
authorskeezix <skeezix@flotsam-vm.(none)>
Mon, 23 Feb 2009 20:57:05 +0000 (15:57 -0500)
committerskeezix <skeezix@flotsam-vm.(none)>
Mon, 23 Feb 2009 20:57:05 +0000 (15:57 -0500)
lib/pnd_tinyxml.cpp

index 83f5082..5b2822e 100644 (file)
@@ -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);
                }
        }