projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b79b9b8
)
cast memcpy to char*
author
Jim Meyering
<jim@meyering.net>
Sun, 14 Dec 1997 15:12:29 +0000
(15:12 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 14 Dec 1997 15:12:29 +0000
(15:12 +0000)
lib/strndup.c
patch
|
blob
|
history
diff --git
a/lib/strndup.c
b/lib/strndup.c
index f4b1f7ac13ffea3565881448298a19f08951b575..b610e40e666e2ac6a351ebe3fa2c2fbb3c69f9ed 100644
(file)
--- 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);
}