Correction of passed buffer size to readlink and verification of result return by readlink.
Merge pull request #2328 from elmiro/readlink

fixed #2036: Correction of passed buffer size to readlink ...