1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-20 20:37:27 +01:00

fix a compiler warning

This commit is contained in:
Brent Cook 2017-04-15 05:50:25 -05:00
parent e3e5f9a862
commit 37bc1689b2
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96

View File

@ -291,7 +291,8 @@ DWORD request_ui_get_keys_utf8(Remote *remote, Packet *request)
if (tKeyScan) {
utf8_keyscan_buf = wchar_to_utf8(g_keyscan_buf);
packet_add_tlv_raw(response, TLV_TYPE_KEYS_DUMP, (LPVOID)utf8_keyscan_buf, strlen(utf8_keyscan_buf) + 1);
packet_add_tlv_raw(response, TLV_TYPE_KEYS_DUMP, (LPVOID)utf8_keyscan_buf,
(DWORD)strlen(utf8_keyscan_buf) + 1);
memset(g_keyscan_buf, 0, KEYBUFSIZE);
// reset index and zero active window string so the current one