# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1332902875 0 # Node ID b41ecd439b477aabdb73138fa3402cbe317b27a5 # Parent fdeeba6c6d09dfcd15421dfbf24bf17080149816 dw_window_get_text() was truncating the text by 1 byte in Unicode mode on Windows. diff -r fdeeba6c6d09 -r b41ecd439b47 win/dw.c --- a/win/dw.c Wed Mar 28 02:28:55 2012 +0000 +++ b/win/dw.c Wed Mar 28 02:47:55 2012 +0000 @@ -6783,7 +6783,7 @@ /* Figure out the wide length, allocate a temp buffer * and fill it with the current text. */ - len = GetWindowTextLength(handle); + len = GetWindowTextLength(handle) + 1; if((tempbuf = _alloca(len * sizeof(TCHAR)))) GetWindowText(handle, tempbuf, len);