From: Howard Chu Date: Tue, 11 Oct 2005 18:57:34 +0000 (+0000) Subject: ITS#4077. I wonder if we should have an ARG_OCTAL flag to preserve the X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~291 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f2930835ceb6d7d1d8dd43d1264fa0b6db351661;p=openldap ITS#4077. I wonder if we should have an ARG_OCTAL flag to preserve the representation ... ? --- 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: