Content-Type: multipart/mixed; boundary="===============8700792732646703325==" MIME-Version: 1.0 From: Andrew Zaborowski Subject: [PATCH 01/11] settings: Fix a format string Date: Thu, 01 Nov 2018 12:54:43 +0100 Message-ID: <20181101115453.10373-1-andrew.zaborowski@intel.com> List-Id: To: ell@lists.01.org --===============8700792732646703325== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The %d conersion specifier is for integers. --- ell/settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ell/settings.c b/ell/settings.c index c6cb0ff..e3e8303 100644 --- a/ell/settings.c +++ b/ell/settings.c @@ -1068,7 +1068,7 @@ LIB_EXPORT bool l_settings_set_double(struct l_settin= gs *settings, { L_AUTO_FREE_VAR(char *, buf); = - buf =3D l_strdup_printf("%d", in); + buf =3D l_strdup_printf("%f", in); = return l_settings_set_value(settings, group_name, key, buf); } -- = 2.19.1 --===============8700792732646703325==--