Check buffer size parameter against link path length when reading link.