summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--siv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/siv.c b/siv.c
index 9b880bb..8944d94 100644
--- a/siv.c
+++ b/siv.c
@@ -340,6 +340,8 @@ app_set_meta_data (App *app,
g_free (encoded);
}
+#define MAX_WINDOWS 1024
+
static char **
process_options (int argc, char **argv)
{
@@ -361,7 +363,7 @@ process_options (int argc, char **argv)
}
/* Don't open more than 32 windows */
- if (i < 32)
+ if (i < MAX_WINDOWS)
{
if (g_path_is_absolute (option))
name = g_strdup (option);