dovecot-2.0: lib-settings: Fixed parsing octal numbers.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Apr 7 10:12:55 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/063a584858bf
changeset: 11103:063a584858bf
user: Timo Sirainen <tss at iki.fi>
date: Wed Apr 07 10:12:09 2010 +0300
description:
lib-settings: Fixed parsing octal numbers.
diffstat:
src/lib-settings/settings-parser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 64bead0067b0 -r 063a584858bf src/lib-settings/settings-parser.c
--- a/src/lib-settings/settings-parser.c Wed Apr 07 04:20:55 2010 +0300
+++ b/src/lib-settings/settings-parser.c Wed Apr 07 10:12:09 2010 +0300
@@ -329,7 +329,7 @@
if (*value != '0')
return get_uint(ctx, value, result_r);
- octal = strtoull(value + 1, &p, 4);
+ octal = strtoull(value + 1, &p, 8);
if (*p != '\0' || octal > UINT_MAX) {
ctx->error = p_strconcat(ctx->parser_pool, "Invalid number: ",
value, NULL);
More information about the dovecot-cvs
mailing list