changeset 30570:621182ecbfda

jabber: use g_ascii_strtod instead of atof here, should be more portable in multiple locales
author Marcus Lundblad <ml@update.uu.se>
date Mon, 20 Sep 2010 19:54:46 +0000
parents 70d8e2e71552
children 016b15f13443
files libpurple/protocols/jabber/google/google_session.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google/google_session.c	Mon Sep 20 15:39:12 2010 +0000
+++ b/libpurple/protocols/jabber/google/google_session.c	Mon Sep 20 19:54:46 2010 +0000
@@ -636,7 +636,7 @@
 
 		if (cname && type && address && port) {
 			PurpleMediaCandidateType candidate_type;
-			guint prio = preference ? atof(preference) * 1000 : 0;
+			guint prio = preference ? g_ascii_strtod(preference, NULL) * 1000 : 0;
 			
 			g_snprintf(n, sizeof(n), "S%d", name++);