diff options
author | Jim Meyering <jim@meyering.net> | 1993-04-04 21:50:19 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-04-04 21:50:19 +0000 |
commit | 7db02117a9f3be74f38100324eac672c8e89296a (patch) | |
tree | 1d42bfec4b6d4e935a6f5dda1deea58312b1997c | |
parent | dc903be45e1d5d916866374515e0df63cc5a4d35 (diff) | |
download | coreutils-7db02117a9f3be74f38100324eac672c8e89296a.tar.xz |
(do_link): Explicitly cast alloca return value to (char *).
-rw-r--r-- | src/ln.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -244,7 +244,7 @@ do_link (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)) |