b78eaf4e43
Since 1st argument precedes the beginning of the buffer, it is necessary to reduce the value of 3rd argument.