]> git.0d.be Git - empathy.git/commitdiff
Use atoi instead of sscanf.
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 6 Mar 2009 11:53:07 +0000 (11:53 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 6 Mar 2009 11:53:07 +0000 (11:53 +0000)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=2611

libempathy/empathy-log-store-empathy.c

index 8bae296857b2d88d51f98c59f2d1c204e82d16fa..8a43c489273e5af57a44317b45df9382cda5475f 100644 (file)
@@ -477,7 +477,7 @@ log_store_empathy_get_messages_for_file (EmpathyLogStore *self,
         msg_type = empathy_message_type_from_str (msg_type_str);
 
       if (cm_id_str)
-        sscanf (cm_id_str, "%d", &cm_id);
+        cm_id = atoi (cm_id_str);
 
       t = empathy_time_parse (time);