Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin Modified Files: ewl_calendar_test.c Log Message: - name ewl_calendar_ascii_time_get return the string instead of taking an array paramter - use snprintf instead of strcat =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_calendar_test.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ewl_calendar_test.c 11 Jul 2005 11:55:40 -0000 1.3 +++ ewl_calendar_test.c 23 Oct 2005 18:19:25 -0000 1.4 @@ -18,9 +18,11 @@ void ewl_calendar_test(Ewl_Widget *main_win __UNUSED__, void *ev_data __UNUSED__, void *user_data) { - char date[1024]; - ewl_calendar_ascii_time_get(EWL_CALENDAR(user_data), date); + char *date; + + date = ewl_calendar_ascii_time_get(EWL_CALENDAR(user_data)); printf ("Selected: %s\n", date); + free(date); } ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs