summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Reitter <travis.reitter@collabora.co.uk>2010-08-23 13:07:30 -0700
committerTravis Reitter <travis.reitter@collabora.co.uk>2010-08-23 19:57:47 -0700
commit7aa66a278818094e82cd8b108ab30cba6ef9d480 (patch)
treeb5a7ab529bef888d4fafa6f085c2494dcc94b615
parent2118606508ae1ef5c9395864c776328ffd590bd3 (diff)
Fix the calculation for the persona_store_id length in Persona.split_uid().
-rw-r--r--folks/persona.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/folks/persona.vala b/folks/persona.vala
index fb3127f..5a5d0a8 100644
--- a/folks/persona.vala
+++ b/folks/persona.vala
@@ -200,7 +200,8 @@ public abstract class Folks.Persona : Object
if (backend_name_length == 0)
backend_name_length = ((char*) i) - ((char*) uid);
else
- persona_store_id_length = ((char*) i) - ((char*) uid);
+ persona_store_id_length =
+ (((char*) i) - ((char*) uid)) - backend_name_length - 1;
}
}