buf isn't a dynamic allocated buffer.

SVN revision: 30960
This commit is contained in:
Sebastian Dransfeld 2007-07-24 17:50:12 +00:00
parent d149b8dca6
commit 5f82f68ff5
1 changed files with 2 additions and 1 deletions

View File

@ -743,6 +743,7 @@ e_util_file_time_get(time_t ftime)
ltime = time(NULL);
diff = ltime - ftime;
buf[0] = 0;
if (ftime > ltime)
{
snprintf(buf, sizeof(buf), _("In the Future"));
@ -765,7 +766,7 @@ e_util_file_time_get(time_t ftime)
snprintf(buf, sizeof(buf), _("%li Minutes ago"), (diff / 60));
}
if (buf)
if (buf[0])
s = strdup(buf);
else
s = strdup(_("Unknown"));