[gnome-bluetooth] applet: Prepend zeros for SSP passkey display



commit a9a5b6f82e0623ff9828278a21b900226c2ec9ae
Author: Bastien Nocera <hadess hadess net>
Date:   Wed May 25 16:37:49 2011 +0100

    applet: Prepend zeros for SSP passkey display
    
    http://thread.gmane.org/gmane.linux.bluez.kernel/13216
    https://bugzilla.gnome.org/show_bug.cgi?id=646253

 applet/agent.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/applet/agent.c b/applet/agent.c
index 24928e7..87417ad 100644
--- a/applet/agent.c
+++ b/applet/agent.c
@@ -387,7 +387,7 @@ confirm_request (BluetoothApplet *applet,
 {
 	char *text, *line;
 
-	text = g_strdup_printf("%d", pin);
+	text = g_strdup_printf("%06d", pin);
 	confirm_dialog(applet, path, name, long_name, text);
 	g_free(text);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]