Correction of passed buffer size to readlink ...

... and verification of returned result by readlink for issue #2304