From: Jim Meyering Date: Sun, 14 Dec 1997 15:12:29 +0000 (+0000) Subject: cast memcpy to char* X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d40d8d7c85b631a4fcdac6956b00f47d952768e0;p=pspp cast memcpy to char* --- diff --git a/lib/strndup.c b/lib/strndup.c index f4b1f7ac13..b610e40e66 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); }