Updated user_read_link() to return the same values it used before the
user_strlcpy() return value semantics change. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4831 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4246,7 +4246,10 @@ user_read_link(const char *userPath, char *userBuffer, size_t bufferSize)
|
|||||||
return status;
|
return status;
|
||||||
|
|
||||||
// ToDo: think about buffer length and the return value at read_link()
|
// ToDo: think about buffer length and the return value at read_link()
|
||||||
return user_strlcpy(userBuffer, buffer, bufferSize);
|
status = user_strlcpy(userBuffer, buffer, bufferSize);
|
||||||
|
if (status >= 0)
|
||||||
|
status = B_OK;
|
||||||
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user