All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/7] settings: Fix a format string
@ 2018-11-01  2:12 Andrew Zaborowski
  2018-11-01  2:12 ` [PATCH 2/7] Add format string checking to a few declarations Andrew Zaborowski
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Andrew Zaborowski @ 2018-11-01  2:12 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 533 bytes --]

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_settings *settings,
 {
 	L_AUTO_FREE_VAR(char *, buf);
 
-	buf = l_strdup_printf("%d", in);
+	buf = l_strdup_printf("%f", in);
 
 	return l_settings_set_value(settings, group_name, key, buf);
 }
-- 
2.19.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-11-01  2:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-01  2:12 [PATCH 1/7] settings: Fix a format string Andrew Zaborowski
2018-11-01  2:12 ` [PATCH 2/7] Add format string checking to a few declarations Andrew Zaborowski
2018-11-01  2:12 ` [PATCH 3/7] tls: Add debug logging API Andrew Zaborowski
2018-11-01  2:12 ` [PATCH 4/7] pem: Add l_pem_load_certificate_list utility Andrew Zaborowski
2018-11-01  2:12 ` [PATCH 5/7] tls: Support loading multiple root CAs Andrew Zaborowski
2018-11-01  2:12 ` [PATCH 6/7] tools: Update tls_cert_verify_certchain parameters Andrew Zaborowski
2018-11-01  2:12 ` [PATCH 7/7] unit: " Andrew Zaborowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.