Enlightenment CVS committal Author : englebass Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_utils.c Log Message: buf isn't a dynamic allocated buffer. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_utils.c,v retrieving revision 1.72 retrieving revision 1.73 diff -u -3 -r1.72 -r1.73 --- e_utils.c 30 May 2007 14:35:26 -0000 1.72 +++ e_utils.c 24 Jul 2007 17:50:12 -0000 1.73 @@ -743,6 +743,7 @@ ltime = time(NULL); diff = ltime - ftime; + buf[0] = 0; if (ftime > ltime) { snprintf(buf, sizeof(buf), _("In the Future")); @@ -765,7 +766,7 @@ snprintf(buf, sizeof(buf), _("%li Minutes ago"), (diff / 60)); } - if (buf) + if (buf[0]) s = strdup(buf); else s = strdup(_("Unknown")); ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs