diff --git a/src/config/options.c b/src/config/options.c index 5cecca0d..0cce49ba 100644 --- a/src/config/options.c +++ b/src/config/options.c @@ -516,8 +516,10 @@ add_opt(struct option *tree, unsigned char *path, unsigned char *capt, case OPT_BOOL: case OPT_INT: case OPT_CODEPAGE: + option->value.number = (int) value; + break; case OPT_LONG: - option->value.number = (long) value; + option->value.number = (long) value; /* FIXME: bignumber */ break; case OPT_COLOR: decode_color(value, strlen((unsigned char *) value),