settings: increase max setting value to 500 chars

This commit is contained in:
FIRST_NAME LAST_NAME 2022-01-17 12:02:39 +01:00
parent f1492d8e41
commit 2cf842c9dd
1 changed files with 2 additions and 2 deletions

View File

@ -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);