소스 검색

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 년 전
부모
커밋
9886e94d9b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      common/rfb/util.cxx

+ 1
- 1
common/rfb/util.cxx 파일 보기

@@ -530,7 +530,7 @@ namespace rfb {

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

// And convert
out = buffer;

Loading…
취소
저장