[file-roller/wip/jtojnar/engrampa-backports: 16/21] Automatically sets the maximum size of static arrays
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller/wip/jtojnar/engrampa-backports: 16/21] Automatically sets the maximum size of static arrays
- Date: Wed, 27 Jul 2022 02:04:05 +0000 (UTC)
commit f743e1df1e19392ec169ff03e5368ddef8f571fa
Author: rbuj <robert buj gmail com>
Date: Mon Sep 30 21:26:46 2019 +0200
Automatically sets the maximum size of static arrays
Cherry picked from
https://github.com/mate-desktop/engrampa/commit/b4b0af5d3493b1b2d39c4bfc9ccf0a1d1ca931ed
src/fr-init.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/fr-init.c b/src/fr-init.c
index e7f54ab4..87823c3d 100644
--- a/src/fr-init.c
+++ b/src/fr-init.c
@@ -202,10 +202,10 @@ GList *CommandList;
gint ForceDirectoryCreation;
GHashTable *ProgramsCache;
GPtrArray *Registered_Archives;
-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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]