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/gui/charcell/list.c | |
parent | ae64d2602befd5589c8c0141a6d812841fdfb232 (diff) | |
download | rockbox-6848961aa5f93a290917071ff3496e1d5026621b.tar.gz rockbox-6848961aa5f93a290917071ff3496e1d5026621b.zip |
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/gui/charcell/list.c')
-rw-r--r-- | apps/gui/charcell/list.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gui/charcell/list.c b/apps/gui/charcell/list.c index 3d699e84dd..64f2fecbbd 100644 --- a/apps/gui/charcell/list.c +++ b/apps/gui/charcell/list.c | |||
@@ -82,7 +82,8 @@ void list_draw(struct screen *display, struct viewport *parent, | |||
82 | break; | 82 | break; |
83 | s = gui_list->callback_get_item_name(current_item, | 83 | s = gui_list->callback_get_item_name(current_item, |
84 | gui_list->data, | 84 | gui_list->data, |
85 | entry_buffer); | 85 | entry_buffer, |
86 | sizeof(entry_buffer)); | ||
86 | entry_name = P2STR(s); | 87 | entry_name = P2STR(s); |
87 | 88 | ||
88 | 89 | ||