diff options
author | rbuj <[email protected]> | 2019-09-30 21:26:46 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-11-20 18:27:25 +0100 |
commit | b4b0af5d3493b1b2d39c4bfc9ccf0a1d1ca931ed (patch) | |
tree | 49ebf393504391b00f44b011e722dc4e6a1617ac | |
parent | b32d619b93fcaca76db77a6bb9ff419a54e0877c (diff) | |
download | engrampa-b4b0af5d3493b1b2d39c4bfc9ccf0a1d1ca931ed.tar.bz2 engrampa-b4b0af5d3493b1b2d39c4bfc9ccf0a1d1ca931ed.tar.xz |
Automatically sets the maximum size of static arrays
-rw-r--r-- | src/fr-init.c | 8 |
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 |