summaryrefslogtreecommitdiff
path: root/lib/strndup.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-12-14 15:12:29 +0000
committerJim Meyering <jim@meyering.net>1997-12-14 15:12:29 +0000
commite68f7b2e4b42a834d5cee09bb81a8be98d869478 (patch)
treeb29c3dfdf8eeaaabf72bc64b88fd2b71bfeb4f8e /lib/strndup.c
parentb1bd801e9421c95ce3b7d167978864f0370fa2d0 (diff)
downloadcoreutils-e68f7b2e4b42a834d5cee09bb81a8be98d869478.tar.xz
cast memcpy to char*
Diffstat (limited to 'lib/strndup.c')
-rw-r--r--lib/strndup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strndup.c b/lib/strndup.c
index f4b1f7ac1..b610e40e6 100644
--- a/lib/strndup.c
+++ b/lib/strndup.c
@@ -43,5 +43,5 @@ strndup (s, n)
return NULL;
new[n] = '\0';
- return memcpy (new, s, n);
+ return (char *) memcpy (new, s, n);
}