diff options
Diffstat (limited to 'apps/gui/option_select.c')
-rw-r--r-- | apps/gui/option_select.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c index 412a82d688..cee445d8c3 100644 --- a/apps/gui/option_select.c +++ b/apps/gui/option_select.c | |||
@@ -331,10 +331,12 @@ static int selection_to_val(struct settings_list *setting, int selection) | |||
331 | return max- (selection * step); | 331 | return max- (selection * step); |
332 | } | 332 | } |
333 | static char * value_setting_get_name_cb(int selected_item, | 333 | static char * value_setting_get_name_cb(int selected_item, |
334 | void * data, char *buffer) | 334 | void * data, |
335 | char *buffer, | ||
336 | size_t buffer_len) | ||
335 | { | 337 | { |
336 | selected_item = selection_to_val(data, selected_item); | 338 | selected_item = selection_to_val(data, selected_item); |
337 | return option_get_valuestring(data, buffer, MAX_PATH, selected_item); | 339 | return option_get_valuestring(data, buffer, buffer_len, selected_item); |
338 | } | 340 | } |
339 | 341 | ||
340 | /* wrapper to convert from int param to bool param in option_screen */ | 342 | /* wrapper to convert from int param to bool param in option_screen */ |