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:
Tyler Dauwalder 2003-09-27 05:29:04 +00:00
parent 702b8e7ed9
commit 453ee0db01

View File

@ -4246,7 +4246,10 @@ user_read_link(const char *userPath, char *userBuffer, size_t bufferSize)
return status;
// 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;
}