projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gdb
[deliverable/binutils-gdb.git]
/
libiberty
/
strndup.c
diff --git
a/libiberty/strndup.c
b/libiberty/strndup.c
index 9395fc8fe6507417fa6dcc5cbbbe4bac6df8371b..9e9b4e2991f833082acd176f48825f76d5a888b9 100644
(file)
--- a/
libiberty/strndup.c
+++ b/
libiberty/strndup.c
@@
-46,10
+46,10
@@
strndup (const char *s, size_t n)
if (n < len)
len = n;
- result = malloc (len + 1);
+ result =
(char *)
malloc (len + 1);
if (!result)
return 0;
result[len] = '\0';
- return memcpy (result, s, len);
+ return
(char *)
memcpy (result, s, len);
}
This page took
0.023278 seconds
and
4
git commands to generate.