]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(print_long_format): Cast alloca return value to char*.
authorJim Meyering <jim@meyering.net>
Thu, 9 Jan 1997 02:33:44 +0000 (02:33 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 9 Jan 1997 02:33:44 +0000 (02:33 +0000)
src/ls.c

index a69292e295135413c07817141b834f191a9e31e8..1ad89984e0568c11488c616cea53c2960430b877 100644 (file)
--- 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;