Avoid crash when resizing window
commit1838870ccb054ffad8f8685fd49c2100f8d3d7b9
authorBjorn Winckler <bjorn.winckler@gmail.com>
Sat, 11 Oct 2008 18:03:23 +0000 (11 20:03 +0200)
committerBjorn Winckler <bjorn.winckler@gmail.com>
Sat, 11 Oct 2008 18:06:31 +0000 (11 20:06 +0200)
tree70be56ea48e46417d1d6dfb3732b52d817a2355e
parente659269f4a343e8d6b399ef1fe861e8495e0e2d3
Avoid crash when resizing window

Sanity check input to gui_macvim_draw_string(); it can happen that 'len'
is non-zero even though first byte of 's' is NUL (test case with file
containing Chinese characters).
src/MacVim/gui_macvim.m