From: Jim Meyering Date: Sun, 4 Apr 1993 21:49:36 +0000 (+0000) Subject: (do_move): Explicitly cast alloca return value to (char *). X-Git-Tag: FILEUTILS-3_8_3b~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc903be45e1d5d916866374515e0df63cc5a4d35;p=thirdparty%2Fcoreutils.git (do_move): Explicitly cast alloca return value to (char *). --- diff --git a/src/mv.c b/src/mv.c index 05a8fa11fc..d64f3e7eaa 100644 --- a/src/mv.c +++ b/src/mv.c @@ -268,7 +268,7 @@ do_move (source, dest) char *tmp_backup = find_backup_file_name (dest); if (tmp_backup == NULL) error (1, 0, "virtual memory exhausted"); - dest_backup = alloca (strlen (tmp_backup) + 1); + dest_backup = (char *) alloca (strlen (tmp_backup) + 1); strcpy (dest_backup, tmp_backup); free (tmp_backup); if (rename (dest, dest_backup))