Skip to content

Commit

Permalink
#812: need one extra character for null termination?
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@22467 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 18, 2019
1 parent 9bbb309 commit 0ff74f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/platform/win32/clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def set_clipboard_text(self, text):
return
log("MultiByteToWideChar wlen=%i", wlen)
#allocate some memory for it:
buf = GlobalAlloc(GMEM_MOVEABLE, wlen*2)
buf = GlobalAlloc(GMEM_MOVEABLE, (wlen+1)*2)
if not buf:
return
log("GlobalAlloc buf=%#x", buf)
Expand Down

0 comments on commit 0ff74f8

Please sign in to comment.