summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_sec.c
diff options
context:
space:
mode:
authorspeidy <speidy@gmail.com>2017-03-19 10:52:21 +0200
committerjsorg71 <jay.sorg@gmail.com>2017-03-21 22:02:29 -0700
commit9d578d9c5fdf76cac44bfabf30e80032087bac7e (patch)
tree474461d11356d4c69fe941f9aa6403cfdd6ee44b /libxrdp/xrdp_sec.c
parentb905967ba6c3eae9803daba4b1574c050981c914 (diff)
downloadxrdp-proprietary-9d578d9c5fdf76cac44bfabf30e80032087bac7e.tar.gz
xrdp-proprietary-9d578d9c5fdf76cac44bfabf30e80032087bac7e.zip
libxrdp: fix misleading variable name
Diffstat (limited to 'libxrdp/xrdp_sec.c')
-rw-r--r--libxrdp/xrdp_sec.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c
index 45d1562f..f0ede10e 100644
--- a/libxrdp/xrdp_sec.c
+++ b/libxrdp/xrdp_sec.c
@@ -617,18 +617,18 @@ xrdp_sec_encrypt(struct xrdp_sec *self, char *data, int len)
/*****************************************************************************
* convert utf-16 encoded string from stream into utf-8 string.
- * note: uni_len doesn't include the null-terminator char.
+ * note: src_bytes doesn't include the null-terminator char.
*/
static int
-unicode_utf16_in(struct stream *s, int uni_len, char *dst, int dst_len)
+unicode_utf16_in(struct stream *s, int src_bytes, char *dst, int dst_len)
{
twchar *src;
int num_chars;
int i;
- int size;
+ int bytes;
- LLOGLN(10, ("unicode_utf16_in: uni_len %d, dst_len %d", uni_len, dst_len));
- if (uni_len == 0)
+ LLOGLN(10, ("unicode_utf16_in: uni_len %d, dst_len %d", src_bytes, dst_len));
+ if (src_bytes == 0)
{
if (!s_check_rem(s, 2))
{
@@ -638,9 +638,9 @@ unicode_utf16_in(struct stream *s, int uni_len, char *dst, int dst_len)
return 0;
}
- size = uni_len + 2; /* include the null terminator */
- src = g_new0(twchar, size);
- for (i = 0; i < size / 2; ++i)
+ bytes = src_bytes + 2; /* include the null terminator */
+ src = g_new0(twchar, bytes);
+ for (i = 0; i < bytes / 2; ++i)
{
if (!s_check_rem(s, 2))
{