summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-01-09 02:33:44 +0000
committerJim Meyering <jim@meyering.net>1997-01-09 02:33:44 +0000
commit9ca6f19a2dc4096f290f62672dd01219a572e937 (patch)
tree06d2934d36c171b6772c3bc7fea318fbec6d4727 /src/ls.c
parent0acd885d83fa6a76f1ffef455ab748e6819ecc37 (diff)
downloadcoreutils-9ca6f19a2dc4096f290f62672dd01219a572e937.tar.xz
(print_long_format): Cast alloca return value to char*.
Diffstat (limited to 'src/ls.c')
-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;