diff options
author | Jim Meyering <jim@meyering.net> | 1993-04-04 21:49:36 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-04-04 21:49:36 +0000 |
commit | dc903be45e1d5d916866374515e0df63cc5a4d35 (patch) | |
tree | 8b07029e75237fb1b7545844a84634b63c0d6012 | |
parent | 223b1d7604929f85ef2ebdc5e9516573352ab5e3 (diff) | |
download | coreutils-dc903be45e1d5d916866374515e0df63cc5a4d35.tar.xz |
(do_move): Explicitly cast alloca return value to (char *).
-rw-r--r-- | src/mv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |