[Telepathy-commits] [telepathy-gabble/master] Location: don't use hardcoded value

Alban Crequy alban.crequy at collabora.co.uk
Sun Feb 1 05:24:03 PST 2009


---
 src/conn-location.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/conn-location.c b/src/conn-location.c
index 62505fa..b9de1cc 100644
--- a/src/conn-location.c
+++ b/src/conn-location.c
@@ -157,7 +157,7 @@ create_msg_foreach (gpointer key,
       struct tm *ptm = gmtime (&stamp);
       gchar str[30];
 
-      if (strftime (str, 30, "%Y%m%dT%TZ", ptm) == 0)
+      if (strftime (str, sizeof(str), "%Y%m%dT%TZ", ptm) == 0)
         return;
 
       lm_message_node_add_child (geoloc, key, str);
-- 
1.5.6.5




More information about the Telepathy-commits mailing list