aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2008-10-17 20:47:11 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-10-17 20:47:11 +0800
commit72b6ced349fb6e60dc893aae077efbe75781aef0 (patch)
treea252ad3141e22f511371f121c4a48bfd6481ac4c
parent85617dc25ff7661c3d2a5f96b92e34e42a178b0a (diff)
downloadgsoc2013-empathy-72b6ced349fb6e60dc893aae077efbe75781aef0.tar
gsoc2013-empathy-72b6ced349fb6e60dc893aae077efbe75781aef0.tar.gz
gsoc2013-empathy-72b6ced349fb6e60dc893aae077efbe75781aef0.tar.bz2
gsoc2013-empathy-72b6ced349fb6e60dc893aae077efbe75781aef0.tar.lz
gsoc2013-empathy-72b6ced349fb6e60dc893aae077efbe75781aef0.tar.xz
gsoc2013-empathy-72b6ced349fb6e60dc893aae077efbe75781aef0.tar.zst
gsoc2013-empathy-72b6ced349fb6e60dc893aae077efbe75781aef0.zip
Use g_ascii_strtod instead of sscanf. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1619
-rw-r--r--src/empathy-import-dialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/empathy-import-dialog.c b/src/empathy-import-dialog.c
index 6f3618483..e726e1e3c 100644
--- a/src/empathy-import-dialog.c
+++ b/src/empathy-import-dialog.c
@@ -248,13 +248,13 @@ import_dialog_pidgin_parse_setting (AccountData *data,
if (!tp_strdiff (type, "bool"))
{
- sscanf (content, "%i", &i);
+ i = (gint) g_ascii_strtod (content, NULL);
value = tp_g_value_slice_new (G_TYPE_BOOLEAN);
g_value_set_boolean (value, i != 0);
}
else if (!tp_strdiff (type, "int"))
{
- sscanf (content, "%i", &i);
+ i = (gint) g_ascii_strtod (content, NULL);
value = tp_g_value_slice_new (G_TYPE_INT);
g_value_set_int (value, i);
}