[gnome-bluetooth] wizard: Fix sub-string matching (again)



commit 3db2df21dc83e64069a9d1bbcb2df52e935a6e5e
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Oct 30 15:24:41 2012 +0100

    wizard: Fix sub-string matching (again)

 wizard/pin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/wizard/pin.c b/wizard/pin.c
index e7043bc..b63c456 100644
--- a/wizard/pin.c
+++ b/wizard/pin.c
@@ -92,7 +92,7 @@ pin_db_parse_start_tag (GMarkupParseContext *ctx,
 		} else if (g_str_equal (*attr_names, "name")) {
 			if (*attr_values == NULL || pdata->name == NULL)
 				return;
-			if (strstr (*attr_values, pdata->name) == NULL)
+			if (strstr (pdata->name, *attr_values) == NULL)
 				return;
 		} else if (g_str_equal (*attr_names, "pin")) {
 			if (g_str_has_prefix (*attr_values, MAX_DIGITS_PIN_PREFIX) != FALSE) {



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