All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/11] settings: Fix a format string
@ 2018-11-01 11:54 Andrew Zaborowski
  2018-11-01 11:54 ` [PATCH 02/11] Add format string checking to a few declarations Andrew Zaborowski
                   ` (10 more replies)
  0 siblings, 11 replies; 21+ messages in thread
From: Andrew Zaborowski @ 2018-11-01 11:54 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] 21+ messages in thread

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

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-01 11:54 [PATCH 01/11] settings: Fix a format string Andrew Zaborowski
2018-11-01 11:54 ` [PATCH 02/11] Add format string checking to a few declarations Andrew Zaborowski
2018-11-01 11:54 ` [PATCH 03/11] tls: Add debug logging API Andrew Zaborowski
2018-11-01 11:54 ` [PATCH 04/11] pem: Add l_pem_load_certificate_list utility Andrew Zaborowski
2018-11-01 19:40   ` Denis Kenzior
2018-11-02  7:32     ` Andrew Zaborowski
2018-11-02 12:50       ` Denis Kenzior
2018-11-01 11:54 ` [PATCH 05/11] tls: Support loading multiple root CAs Andrew Zaborowski
2018-11-01 19:47   ` Denis Kenzior
2018-11-01 11:54 ` [PATCH 06/11] tools: Update tls_cert_verify_certchain parameters Andrew Zaborowski
2018-11-01 11:54 ` [PATCH 07/11] unit: " Andrew Zaborowski
2018-11-01 11:54 ` [PATCH 08/11] tls: Stricter certificate chain verification Andrew Zaborowski
2018-11-01 19:56   ` Denis Kenzior
2018-11-02  0:35     ` Mat Martineau
2018-11-02  0:55       ` Denis Kenzior
2018-11-02  8:38         ` Andrew Zaborowski
2018-11-01 11:54 ` [PATCH 09/11] tls: Support loading certificate chains from file Andrew Zaborowski
2018-11-01 20:48   ` Denis Kenzior
2018-11-01 11:54 ` [PATCH 10/11] tls: Propagate errors to l_tls_prf_get_bytes Andrew Zaborowski
2018-11-01 11:54 ` [PATCH 11/11] unit: More TLS certificate tests Andrew Zaborowski
2018-11-01 19:30 ` [PATCH 01/11] settings: Fix a format string Denis Kenzior

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.