]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(cat): Cast first arg to stpcpy to char*.
authorJim Meyering <jim@meyering.net>
Sat, 24 Aug 1996 19:28:27 +0000 (19:28 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 24 Aug 1996 19:28:27 +0000 (19:28 +0000)
src/cat.c

index bafd8513fc1caa40323450069d448aa1dd4140d3..f3124db43b9684a70959c56420bd2afd0dc81203 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
@@ -347,7 +347,8 @@ cat (
                  if (numbers && numbers_at_empty_lines)
                    {
                      next_line_num ();
-                     bpout = (unsigned char *) stpcpy (bpout, line_num_print);
+                     bpout = (unsigned char *) stpcpy ((char *) bpout,
+                                                       line_num_print);
                    }
                }
 
@@ -369,7 +370,7 @@ cat (
       if (newlines >= 0 && numbers)
        {
          next_line_num ();
-         bpout = (unsigned char *) stpcpy (bpout, line_num_print);
+         bpout = (unsigned char *) stpcpy ((char *) bpout, line_num_print);
        }
 
       /* Here CH cannot contain a newline character.  */