From: skeezix Date: Wed, 24 Mar 2010 13:15:30 +0000 (-0400) Subject: Minor path fix X-Git-Tag: Release-2010-05/1~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73ad732609ce8e8bb1665a8f172686a7f0a326dd;p=pandora-libraries.git Minor path fix --- diff --git a/minimenu/TODO.txt b/minimenu/TODO.txt index 7bd6174..09a26ed 100644 --- a/minimenu/TODO.txt +++ b/minimenu/TODO.txt @@ -5,11 +5,17 @@ - libpnd: appdata-dir-name? +- skinning .. mmenu.conf and then skin.conf in each skin dir? +- preview pic override for davec :) +- some ultra primtive frame draw, so the 'detail menu' and any 'sub menus' can draw + their own frame rather than depand on skin frame to exist - About screen and shoutouts // konami code? - - deploy.. - .desktop for deployment, for running from xfce +- maybe: + - directory browser; easy hack + - future - honor render_mask to know what to update - handle SD eject/insert? or leave on manual diff --git a/minimenu/mmui.c b/minimenu/mmui.c index 1e23d30..2d2ac5f 100644 --- a/minimenu/mmui.c +++ b/minimenu/mmui.c @@ -216,7 +216,11 @@ unsigned char ui_imagecache ( char *basepath ) { return ( 0 ); } - sprintf ( fullpath, "%s/%s", basepath, filename ); + if ( filename [ 0 ] == '/' ) { + strncpy ( fullpath, filename, PATH_MAX ); + } else { + sprintf ( fullpath, "%s/%s", basepath, filename ); + } if ( ! ( g_imagecache [ i ].i = IMG_Load ( fullpath ) ) ) { pnd_log ( pndn_error, "ERROR: Couldn't load static cache image: %s\n", fullpath );