[epiphany] migration: don't store a trailing ) in realm



commit 2a1a987ae0deea9fcc86c7adaa33eb514e6873d1
Author: Diego Escalante Urrelo <descalante igalia com>
Date:   Mon Mar 8 20:31:25 2010 -0500

    migration: don't store a trailing ) in realm
    
    Realms where exported as "realm)" because of a missing -1.
    
    Bug #608687

 lib/ephy-profile-migration.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/ephy-profile-migration.c b/lib/ephy-profile-migration.c
index 01a4a20..857d4a4 100644
--- a/lib/ephy-profile-migration.c
+++ b/lib/ephy-profile-migration.c
@@ -224,7 +224,7 @@ parse_and_decrypt_signons (const char *signons,
       g_free (url);
 
       start += strlen (realmBracketBegin);
-      end_ptr = g_strstr_len (full_url, -1, realmBracketEnd);
+      end_ptr = g_strstr_len (full_url, -1, realmBracketEnd) -1;
       end = g_utf8_pointer_to_offset (full_url, end_ptr);
       realm = _g_utf8_substr (full_url, start, end);
 



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