summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 70686cc..f4d4029 100644
--- a/src/options.c
+++ b/src/options.c
@@ -238,6 +238,11 @@ static void feh_parse_options_from_string(char *opts)
list[num++] = estrdup(PACKAGE);
for (s = opts, t = opts;; t++) {
+
+ if (num > 64)
+ eprintf(PACKAGE " does not support more than 64 words per "
+ "theme definition.\n Please shorten your lines.");
+
if ((*t == ' ') && !(inquote)) {
*t = '\0';
num++;