Skip to content

Commit 9effae8

Browse files
committed
Merge pull request #1794 from matricks/bugfix
fixed memmove. were using memcpy due to copy paste error
2 parents 1ccbba3 + a422cd7 commit 9effae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Copies data from one src to dst, overlap between the two pointers may occur.
7070
Count is the number of elements to copy and not the number of bytes.
7171
*/
7272
unsafe fn memmove<T>(dst: *T, src: *T, count: uint) {
73-
rusti::memcpy(dst, src, count);
73+
rusti::memmove(dst, src, count);
7474
}
7575

7676
#[test]

0 commit comments

Comments
 (0)