cpw.malu.xmpp.google_ft: a07bfe77: use g_ascii_strtod instead of atof
malu at pidgin.im
malu at pidgin.im
Mon Sep 20 16:15:50 EDT 2010
----------------------------------------------------------------------
Revision: a07bfe777addd082c9414ee6f9807180991539c2
Parent: 17c13254fc41a7739bf0761d8309955911839865
Author: malu at pidgin.im
Date: 09/20/10 16:09:28
Branch: im.pidgin.cpw.malu.xmpp.google_ft
URL: http://d.pidgin.im/viewmtn/revision/info/a07bfe777addd082c9414ee6f9807180991539c2
Changelog:
use g_ascii_strtod instead of atof
Changes against parent 17c13254fc41a7739bf0761d8309955911839865
patched libpurple/protocols/jabber/google/google_av.c
patched libpurple/protocols/jabber/google/google_share.c
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/google/google_av.c 7439c8abfe49be471159a8460fa1f9fef50f488b
+++ libpurple/protocols/jabber/google/google_av.c 7ba30b9783fd623677a1be8c2e260cb426926993
@@ -316,7 +316,7 @@ google_av_handle_candidates(JabberStream
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++);
============================================================
--- libpurple/protocols/jabber/google/google_share.c e2585a637c0113105f0a676b1bf28f424c3ad7ae
+++ libpurple/protocols/jabber/google/google_share.c e355666f50267cff7b0c993575b6d32144dc8df5
@@ -65,7 +65,7 @@ google_share_get_nice_candidate_from_xml
const gchar *preference = xmlnode_get_attrib(candidate, "preference");
if (name && type && address && port != 0) {
- guint prio = preference ? atof(preference) * 1000 : 0;
+ guint prio = preference ? g_ascii_strtod(preference, NULL) * 1000 : 0;
cand = nice_candidate_new(purple_strequal(type, "host") ?
NICE_CANDIDATE_TYPE_HOST :
purple_strequal(type, "stun") ? NICE_CANDIDATE_TYPE_SERVER_REFLEXIVE :
More information about the Commits
mailing list