From 01638baebc261c92bc94a5dd8735af702ebf0b95 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Tue, 27 Mar 2018 12:19:24 +0200 Subject: [PATCH] Ensure that maxlen is an integer value in dict_int --- contrib/dict_int/dict_int.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/dict_int/dict_int.c b/contrib/dict_int/dict_int.c index 56ede37089..d652cb7344 100644 --- a/contrib/dict_int/dict_int.c +++ b/contrib/dict_int/dict_int.c @@ -44,7 +44,7 @@ dintdict_init(PG_FUNCTION_ARGS) if (strcmp(defel->defname, "maxlen") == 0) { - d->maxlen = atoi(defGetString(defel)); + d->maxlen = defGetInt32(defel); } else if (strcmp(defel->defname, "rejectlong") == 0) { -- 2.14.1.145.gb3622a4ee