pidgin: 6c7b27ab: jabber: use g_ascii_strtod instead of at...
malu at pidgin.im
malu at pidgin.im
Mon Sep 20 16:01:48 EDT 2010
----------------------------------------------------------------------
Revision: 6c7b27abd37198a7bf98e9255299159259bcffc7
Parent: 01217e4bdeb97f0a76dbe7224e96d04dcd01eafa
Author: malu at pidgin.im
Date: 09/20/10 15:54:46
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6c7b27abd37198a7bf98e9255299159259bcffc7
Changelog:
jabber: use g_ascii_strtod instead of atof here, should be more portable in multiple locales
Changes against parent 01217e4bdeb97f0a76dbe7224e96d04dcd01eafa
patched libpurple/protocols/jabber/google/google_session.c
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/google/google_session.c 87cece8a91dda09544a855f5bfb472f3b162801a
+++ libpurple/protocols/jabber/google/google_session.c ce400a6cadef87549c47a82bdbbd9d3b6ee3d184
@@ -636,7 +636,7 @@ google_session_handle_candidates(JabberS
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++);
More information about the Commits
mailing list