In the functions TRI_VerifyLockFile (Linux and Windows), there is no need to memset() 'buffer' to '\0', just NUL-terminate it before calling TRI_UInt32String.