[gnome-bluetooth] pin vendor fix



commit 5b160177a047424010b6e13039a07dfd4f46d654
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Dec 9 23:53:34 2013 +0100

    pin vendor fix

 lib/pin.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/lib/pin.c b/lib/pin.c
index df4b1c3..0de1d33 100644
--- a/lib/pin.c
+++ b/lib/pin.c
@@ -179,6 +179,7 @@ get_pincode_for_device (guint       type,
        char *buf;
        gsize buf_len;
        GError *err = NULL;
+       char *tmp_vendor;
 
        g_return_val_if_fail (address != NULL, NULL);
 
@@ -203,9 +204,12 @@ get_pincode_for_device (guint       type,
        data.type = type;
        data.address = address;
        data.name = name;
-       data.vendor = oui_to_vendor (address);
        data.confirm = TRUE;
 
+       tmp_vendor = oui_to_vendor (address);
+       data.vendor = g_ascii_strdown (tmp_vendor, -1);
+       g_free (tmp_vendor);
+
        ctx = g_markup_parse_context_new (&parser, 0, &data, NULL);
 
        if (!g_markup_parse_context_parse (ctx, buf, buf_len, &err)) {


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