summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-09-30 21:26:46 +0200
committerZenWalker <[email protected]>2019-11-20 18:27:25 +0100
commitb4b0af5d3493b1b2d39c4bfc9ccf0a1d1ca931ed (patch)
tree49ebf393504391b00f44b011e722dc4e6a1617ac
parentb32d619b93fcaca76db77a6bb9ff419a54e0877c (diff)
downloadengrampa-b4b0af5d3493b1b2d39c4bfc9ccf0a1d1ca931ed.tar.bz2
engrampa-b4b0af5d3493b1b2d39c4bfc9ccf0a1d1ca931ed.tar.xz
Automatically sets the maximum size of static arrays
-rw-r--r--src/fr-init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fr-init.c b/src/fr-init.c
index 2abf248..d4c4885 100644
--- a/src/fr-init.c
+++ b/src/fr-init.c
@@ -192,10 +192,10 @@ GList *CommandList;
gint ForceDirectoryCreation;
GHashTable *ProgramsCache;
GPtrArray *Registered_Commands;
-int single_file_save_type[64];
-int save_type[64];
-int open_type[64];
-int create_type[64];
+int single_file_save_type[G_N_ELEMENTS (mime_type_desc)];
+int save_type[G_N_ELEMENTS (mime_type_desc)];
+int open_type[G_N_ELEMENTS (mime_type_desc)];
+int create_type[G_N_ELEMENTS (mime_type_desc)];
static void