HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee19288
)
* strings.c (scm_mem2string): use memcpy rather than by-hand loop.
author
Rob Browning
<rlb@defaultvalue.org>
Mon, 7 Apr 2003 01:49:04 +0000
(
01:49
+0000)
committer
Rob Browning
<rlb@defaultvalue.org>
Mon, 7 Apr 2003 01:49:04 +0000
(
01:49
+0000)
Thanks to Dale P. Smith.
libguile/strings.c
patch
|
blob
|
blame
|
history
diff --git
a/libguile/strings.c
b/libguile/strings.c
index
ac5cfd2
..
d389594
100644
(file)
--- a/
libguile/strings.c
+++ b/
libguile/strings.c
@@
-129,9
+129,7
@@
scm_mem2string (const char *src, size_t len)
{
SCM s = scm_allocate_string (len);
char *dst = SCM_STRING_CHARS (s);
-
- while (len--)
- *dst++ = *src++;
+ memcpy (dst, src, len);
return s;
}