From: Robert Kessl Date: Mon, 4 Aug 2014 11:47:40 +0000 (+0200) Subject: xtypes: xt_double bugfix in parsing of precision X-Git-Tag: v6.1~3^2~9 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=97c0f0673d3bf8f426afb784e8b419c8931977cb;p=libucw.git xtypes: xt_double bugfix in parsing of precision --- diff --git a/ucw/xtypes-basic.c b/ucw/xtypes-basic.c index 26d7cb1f..26651855 100644 --- a/ucw/xtypes-basic.c +++ b/ucw/xtypes-basic.c @@ -84,7 +84,7 @@ static const char *xt_double_parse(const char *str, void *dest, struct mempool * static const char * xt_double_fmt_parse(const char *str, u32 *dest, struct mempool *pool) { uint precision = 0; - const char *tmp_err = str_to_uint(&precision, str, NULL, 0); + const char *tmp_err = str_to_uint(&precision, str, NULL, 10); if (tmp_err) return mp_printf(pool, "Could not parse floating point number precision: %s", tmp_err);