diff options
| author | speidy <speidy@gmail.com> | 2017-03-18 09:39:43 +0200 |
|---|---|---|
| committer | metalefty <meta@vmeta.jp> | 2017-03-24 15:36:36 +0900 |
| commit | 1c70e4915fac837db146cd7cb024754318a4485a (patch) | |
| tree | d6e17d2d00d2901249756f51f8da80e92b009ca2 | |
| parent | 22f0b05b035e56b81d2802ba2dd78b4e403393c2 (diff) | |
| download | xrdp-proprietary-1c70e4915fac837db146cd7cb024754318a4485a.tar.gz xrdp-proprietary-1c70e4915fac837db146cd7cb024754318a4485a.zip | |
xrdp_orders_rail: fix resulting unicode length
| -rw-r--r-- | libxrdp/xrdp_orders_rail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libxrdp/xrdp_orders_rail.c b/libxrdp/xrdp_orders_rail.c index 0037b8ee..7bc7eed9 100644 --- a/libxrdp/xrdp_orders_rail.c +++ b/libxrdp/xrdp_orders_rail.c @@ -239,7 +239,7 @@ xrdp_orders_get_unicode_bytes(const char *text) else { /* calculate the number of bytes of the resulting null-terminated wide-string */ - num_chars = (num_chars + 1) * sizeof(twchar); + num_chars = (num_chars + 1) * 2; } return num_chars; |
