From f2930835ceb6d7d1d8dd43d1264fa0b6db351661 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 11 Oct 2005 18:57:34 +0000 Subject: [PATCH] ITS#4077. I wonder if we should have an ARG_OCTAL flag to preserve the representation ... ? --- servers/slapd/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 8d44c6c60e..8d5544183d 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -191,7 +191,7 @@ int config_check_vals(ConfigTable *Conf, ConfigArgs *c, int check_only ) { int j; iarg = 0; larg = 0; barg = 0; switch(arg_type & ARGS_NUMERIC) { - case ARG_INT: iarg = atoi(c->argv[1]); break; + case ARG_INT: iarg = strtol(c->argv[1], NULL, 0); break; case ARG_LONG: larg = strtol(c->argv[1], NULL, 0); break; case ARG_BER_LEN_T: barg = (ber_len_t)atol(c->argv[1]); break; case ARG_ON_OFF: -- 2.39.5