diff options
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r-- | apps/gui/list.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 07ef578d29..2ba4d4e762 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -815,17 +815,21 @@ void simplelist_addline(int line_number, const char *fmt, ...) | |||
815 | va_end(ap); | 815 | va_end(ap); |
816 | } | 816 | } |
817 | 817 | ||
818 | static char* simplelist_static_getname(int item, void * data, char *buffer) | 818 | static char* simplelist_static_getname(int item, |
819 | void * data, | ||
820 | char *buffer, | ||
821 | size_t buffer_len) | ||
819 | { | 822 | { |
820 | (void)data; (void)buffer; | 823 | (void)data; (void)buffer; (void)buffer_len; |
821 | return simplelist_text[item]; | 824 | return simplelist_text[item]; |
822 | } | 825 | } |
826 | |||
823 | bool simplelist_show_list(struct simplelist_info *info) | 827 | bool simplelist_show_list(struct simplelist_info *info) |
824 | { | 828 | { |
825 | struct gui_synclist lists; | 829 | struct gui_synclist lists; |
826 | struct viewport vp[NB_SCREENS]; | 830 | struct viewport vp[NB_SCREENS]; |
827 | int action, old_line_count = simplelist_line_count,i; | 831 | int action, old_line_count = simplelist_line_count,i; |
828 | char* (*getname)(int item, void * data, char *buffer); | 832 | char* (*getname)(int item, void * data, char *buffer, size_t buffer_len); |
829 | if (info->get_name) | 833 | if (info->get_name) |
830 | getname = info->get_name; | 834 | getname = info->get_name; |
831 | else | 835 | else |