summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index a69292e29..1ad89984e 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -2141,7 +2141,7 @@ print_long_format (const struct fileinfo *f)
while (! (s = strftime (p, buf + bufsize - p, fmt, localtime (&when))))
{
- char *newbuf = alloca (bufsize *= 2);
+ char *newbuf = (char *) alloca (bufsize *= 2);
memcpy (newbuf, buf, p - buf);
p = newbuf + (p - buf);
buf = newbuf;