From 9878226e4dec1ee7bb1434249214d6d8161b439f Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 20 Oct 2021 16:05:21 -0400 Subject: filetree.c move static and stack allocated buffers around it makes more sense to make the main buffer static and make the second (infrequently needed) buffer as stack allocated Change-Id: Ide7c1a7a312124e47a23ed0ab75a90d7b8be982e --- apps/filetypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/filetypes.h') diff --git a/apps/filetypes.h b/apps/filetypes.h index 23f259b3ca..efe9f3f5df 100644 --- a/apps/filetypes.h +++ b/apps/filetypes.h @@ -73,7 +73,7 @@ int filetype_get_color(const char* name, int attr); #endif int filetype_get_icon(int attr); /* return the plugin filename associated with the file */ -char* filetype_get_plugin(const struct entry* file); +char* filetype_get_plugin(const struct entry* file, char *buffer, size_t buffer_len); /* returns true if the attr is supported */ bool filetype_supported(int attr); -- cgit v1.2.3