diff options
Diffstat (limited to 'apps/filetypes.c')
| -rw-r--r-- | apps/filetypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c index 1e7224a..090898a 100644 --- a/apps/filetypes.c +++ b/apps/filetypes.c @@ -241,7 +241,7 @@ void filetype_init(void) #ifdef HAVE_LCD_COLOR /* the extra item here is for the unknown types which use the last array element */ - custom_colors = (int*)buffer_alloc(sizeof(int)*max_types+1); + custom_colors = (int*)buffer_alloc(sizeof(int)*(max_types+1)); #endif /* set the directory item first */ filetypes[0].extension = NULL; |