diff options
| author | Nils Wallménius <nils@rockbox.org> | 2008-04-09 15:25:17 +0000 |
|---|---|---|
| committer | Nils Wallménius <nils@rockbox.org> | 2008-04-09 15:25:17 +0000 |
| commit | 6848961aa5f93a290917071ff3496e1d5026621b (patch) | |
| tree | 70d377348ab0694c356fffd9fe25f095ccbe88fe /apps/plugins/lib | |
| parent | ae64d2602befd5589c8c0141a6d812841fdfb232 (diff) | |
| download | rockbox-6848961aa5f93a290917071ff3496e1d5026621b.zip rockbox-6848961aa5f93a290917071ff3496e1d5026621b.tar.gz rockbox-6848961aa5f93a290917071ff3496e1d5026621b.tar.bz2 rockbox-6848961aa5f93a290917071ff3496e1d5026621b.tar.xz | |
Pass the buffer length to the list_get_name callback functions instead of using hardcoded MAX_PATH
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17049 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib')
| -rw-r--r-- | apps/plugins/lib/oldmenuapi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/lib/oldmenuapi.c b/apps/plugins/lib/oldmenuapi.c index c21e55f..27e4fdd 100644 --- a/apps/plugins/lib/oldmenuapi.c +++ b/apps/plugins/lib/oldmenuapi.c @@ -40,10 +40,11 @@ struct menu { static struct menu menus[MAX_MENUS]; static bool inuse[MAX_MENUS] = { false }; -static char * menu_get_itemname(int selected_item, void * data, char *buffer) +static char * menu_get_itemname(int selected_item, void * data, + char *buffer, size_t buffer_len) { + (void)buffer; (void)buffer_len; struct menu *local_menus=(struct menu *)data; - (void)buffer; return(local_menus->items[selected_item].desc); } |