Skip to content
Commit c0f06010 authored by Chris Metcalf's avatar Chris Metcalf
Browse files

tile: fix strncpy_from_user bug



In strncpy_from_user_asm, when the destination buffer length was the
same as the actual string length, we were returning the size of the
destination buffer.  But since it's a NUL terminated string, we should
return the length of the string instead.

Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent 084fe6a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment