forked from enlightenment/enlightenment
buf isn't a dynamic allocated buffer.
SVN revision: 30960
This commit is contained in:
parent
d149b8dca6
commit
5f82f68ff5
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue