diff options
author | Bastien Nocera <hadess@hadess.net> | 2012-10-30 15:24:41 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2012-10-30 15:32:58 +0100 |
commit | 3db2df21dc83e64069a9d1bbcb2df52e935a6e5e (patch) | |
tree | 932a1abd07ec3cbd889be06de1f7b3d54c676376 | |
parent | e28d30d159e0fa4328e7d02d7166bbba52ac2afc (diff) | |
download | gnome-bluetooth-3db2df21dc83e64069a9d1bbcb2df52e935a6e5e.tar.gz |
wizard: Fix sub-string matching (again)
-rw-r--r-- | wizard/pin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wizard/pin.c b/wizard/pin.c index e7043bc6..b63c4561 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) { |