Procházet zdrojové kódy

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 před 3 roky
rodič
revize
9886e94d9b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      common/rfb/util.cxx

+ 1
- 1
common/rfb/util.cxx Zobrazit soubor

@@ -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;

Načítá se…
Zrušit
Uložit