[gnome-bluetooth] Fix special passkey handling, when a OUI is used
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-bluetooth] Fix special passkey handling, when a OUI is used
- Date: Sat, 2 May 2009 12:38:02 -0400 (EDT)
commit cf2ea05fc9dd3530f3a6ce363f3ec5d141c949cf
Author: Bastien Nocera <hadess hadess net>
Date: Sat May 2 17:34:23 2009 +0100
Fix special passkey handling, when a OUI is used
Use g_str_has_prefix() properly, the arguments were reversed.
---
wizard/pin.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/wizard/pin.c b/wizard/pin.c
index 3c316de..8522804 100644
--- a/wizard/pin.c
+++ b/wizard/pin.c
@@ -81,7 +81,7 @@ pin_db_parse_start_tag (GMarkupParseContext *ctx,
if (type != BLUETOOTH_TYPE_ANY && type != pdata->type)
return;
} else if (g_str_equal (*attr_names, "oui")) {
- if (g_str_has_prefix (*attr_values, pdata->address) == FALSE)
+ if (g_str_has_prefix (pdata->address, *attr_values) == FALSE)
return;
} else if (g_str_equal (*attr_names, "name")) {
if (g_str_equal (*attr_values, pdata->name) == FALSE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]