Browse Source

Correctly clear out output UTF-16 buffer

Each character is more than one byte, so adjust the clearing of the
buffer to reflect that.
tags/v1.11.90
Pierre Ossman 3 years ago
parent
commit
9886e94d9b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      common/rfb/util.cxx

+ 1
- 1
common/rfb/util.cxx View File



// Alloc // Alloc
buffer = new wchar_t[sz]; buffer = new wchar_t[sz];
memset(buffer, 0, sz);
memset(buffer, 0, sz * sizeof(wchar_t));


// And convert // And convert
out = buffer; out = buffer;

Loading…
Cancel
Save