[gnome-bluetooth] Fix another g_str_has_prefix() usage



commit b2baaa1704981135a817cd2dde1e3e989464219e
Author: Bastien Nocera <hadess hadess net>
Date:   Sat May 23 20:14:31 2009 +0100

    Fix another g_str_has_prefix() usage
    
    Again, swapped arguments.
---
 wizard/pin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/wizard/pin.c b/wizard/pin.c
index c7192de..cb064bf 100644
--- a/wizard/pin.c
+++ b/wizard/pin.c
@@ -91,7 +91,7 @@ pin_db_parse_start_tag (GMarkupParseContext *ctx,
 			if (g_str_equal (*attr_values, pdata->name) == FALSE)
 				return;
 		} else if (g_str_equal (*attr_names, "pin")) {
-			if (g_str_has_prefix (MAX_DIGITS_PIN_PREFIX, *attr_values) != FALSE) {
+			if (g_str_has_prefix (*attr_values, MAX_DIGITS_PIN_PREFIX) != FALSE) {
 				pdata->max_digits = strtoul (*attr_values + strlen (MAX_DIGITS_PIN_PREFIX), NULL, 0);
 				g_assert (pdata->max_digits > 0 && pdata->max_digits < PIN_NUM_DIGITS);
 			} else {



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