Commit 948f3e77 authored by Ken Thompson's avatar Ken Thompson

bug in copy

R=rsc
https://golang.org/cl/156056
parent c4606d05
......@@ -189,7 +189,7 @@ runtime·slicecopy(Slice to, Slice fm, uintptr width, int32 ret)
}
ret = fm.len;
if(to.len > ret)
if(to.len < ret)
ret = to.len;
memmove(to.array, fm.array, ret*width);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment