ami pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=02206f252f51abd11ae60c61bb400401a909b605

commit 02206f252f51abd11ae60c61bb400401a909b605
Author: Amitesh Singh <[email protected]>
Date:   Tue Oct 31 14:26:55 2017 +0900

    elm test: calender - use eina_strbuf_append_strftime instead
---
 src/bin/elementary/test_calendar.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/bin/elementary/test_calendar.c 
b/src/bin/elementary/test_calendar.c
index 23d4b092b1..dbcf9463ad 100644
--- a/src/bin/elementary/test_calendar.c
+++ b/src/bin/elementary/test_calendar.c
@@ -407,14 +407,12 @@ _cal_changed_cb(void *data EINA_UNUSED, const Efl_Event 
*ev)
 static void
 _cal_format_cb(void *data EINA_UNUSED, Eina_Strbuf *str, const Eina_Value 
value)
 {
-   char buf[128];
    struct tm current_time;
 
    if (eina_value_type_get(&value) == EINA_VALUE_TYPE_TM)
      {
         eina_value_get(&value, &current_time);
-        strftime(buf, sizeof(buf), "%b %y", &current_time);
-        eina_strbuf_append_printf(str, "<< %s >>", buf);
+        eina_strbuf_append_strftime(str, "<< %b %y >>", &current_time);
      }
 }
 

-- 


Reply via email to