diff options
Diffstat (limited to 'apps/plugins/properties.c')
-rw-r--r-- | apps/plugins/properties.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index c76a25b06a..7cd29c126f 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c @@ -228,7 +228,8 @@ static bool dir_properties(char* selected_file) return true; } -char * get_props(int selected_item, void* data, char *buffer, size_t buffer_len) +static const char * get_props(int selected_item, void* data, + char *buffer, size_t buffer_len) { (void)data; @@ -263,8 +264,7 @@ char * get_props(int selected_item, void* data, char *buffer, size_t buffer_len) rb->strlcpy(buffer, its_a_dir ? "" : str_duration, buffer_len); break; default: - rb->strlcpy(buffer, "ERROR", buffer_len); - break; + return "ERROR"; } return buffer; } |