From 2cf842c9dd323bc24a6577194f337d098a2b9f1c Mon Sep 17 00:00:00 2001 From: FIRST_NAME LAST_NAME Date: Mon, 17 Jan 2022 12:02:39 +0100 Subject: [PATCH] settings: increase max setting value to 500 chars --- src/option.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/option.c b/src/option.c index 23ef9ca..2bcd9d3 100644 --- a/src/option.c +++ b/src/option.c @@ -109,7 +109,7 @@ int read_options(const char *fname) { FILE *fh; - char line[1024], type[20], option[50], value[50]; + char line[1024], type[20], option[50], value[500]; int id; if (!(fh = fopen(fname, "rt"))) @@ -121,7 +121,7 @@ read_options(const char *fname) continue; // Get configuration option from setting line - if (sscanf(line, "%19s %49s %49[^\t\n]", type, option, value) == 3) { + if (sscanf(line, "%19s %49s %499[^\t\n]", type, option, value) == 3) { if (!strcasecmp(type, "set")) { if ((id = setting_id(option)) >= 0) { setting_set_value(id, value);