Fix sanitizer error

Wrong constructor for string is being used, which sometimes causes a
sanitizer error, due to read past the end of buff, which wasn't NUL-terminated.

Bug: 263769296
Test: m, it runs
Change-Id: I97c00d5ae068a18739c313eeae39ab6454266a23
1 file changed