Fix out of boundary write on 1x1 terminals
If a terminal is merely 1x1 in size, setsize() will write a nul byte in front of the allocated memory, which is an out of boundary write.
This commit is contained in:
1 parent
a2ceb95e2a
commit
03f5e2b7c5
1 file changed
+2