From c2be3408edcafa42f49d9fc4f3bfc72fe76b419e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 7 Jan 2021 11:47:46 +0100 Subject: [PATCH] config; {horizontal,vertical}-letter-offsets may be negative --- config.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.c b/config.c index 8f0b334f..e02167af 100644 --- a/config.c +++ b/config.c @@ -591,8 +591,8 @@ parse_section_main(const char *key, const char *value, struct config *conf, } else if (strcmp(key, "horizontal-letter-offset") == 0) { - unsigned long offset; - if (!str_to_ulong(value, 10, &offset)) { + long offset; + if (!str_to_long(value, 10, &offset)) { LOG_AND_NOTIFY_ERR( "%s:%d: [default]: horizontal-letter-offset: " "expected an integer, got '%s'", path, lineno, value); @@ -602,8 +602,8 @@ parse_section_main(const char *key, const char *value, struct config *conf, } else if (strcmp(key, "vertical-letter-offset") == 0) { - unsigned long offset; - if (!str_to_ulong(value, 10, &offset)) { + long offset; + if (!str_to_long(value, 10, &offset)) { LOG_AND_NOTIFY_ERR( "%s:%d: [default]: horizontal-letter-offset: " "expected an integer, got '%s'", path, lineno, value);