projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
daily update
[deliverable/binutils-gdb.git]
/
libiberty
/
xstrndup.c
diff --git
a/libiberty/xstrndup.c
b/libiberty/xstrndup.c
index 68c5f453c7d508a099dbea793ceb8e5b69a8ba7f..0a41f608ec0b9c71ddebc4975c688c88bdde30a3 100644
(file)
--- a/
libiberty/xstrndup.c
+++ b/
libiberty/xstrndup.c
@@
-53,8
+53,8
@@
xstrndup (const char *s, size_t n)
if (n < len)
len = n;
- result =
xmalloc (
len + 1);
+ result =
XNEWVEC (char,
len + 1);
result[len] = '\0';
- return memcpy (result, s, len);
+ return
(char *)
memcpy (result, s, len);
}
This page took
0.023376 seconds
and
4
git commands to generate.