summaryrefslogtreecommitdiff
path: root/paramiko/win_pageant.py
diff options
context:
space:
mode:
authorScott Maxwell <scott@codecobblers.com>2013-11-01 09:49:52 -0700
committerScott Maxwell <scott@codecobblers.com>2013-11-01 09:49:52 -0700
commit9662a7f779636f0328263a81cdeb76af25802970 (patch)
tree0d0caa288159db9439e22039b21127201fc09017 /paramiko/win_pageant.py
parent06b866cf406c035ecaffd7a8abd31d6e07b8811a (diff)
downloadparamiko-9662a7f779636f0328263a81cdeb76af25802970.tar.gz
Changes inspired by the nischu7 branch
Diffstat (limited to 'paramiko/win_pageant.py')
-rw-r--r--paramiko/win_pageant.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paramiko/win_pageant.py b/paramiko/win_pageant.py
index de1cd64b..c0d0f4af 100644
--- a/paramiko/win_pageant.py
+++ b/paramiko/win_pageant.py
@@ -28,6 +28,7 @@ import threading
import array
import platform
import ctypes.wintypes
+from paramiko.util import *
from . import _winapi
@@ -82,7 +83,7 @@ def _query_pageant(msg):
with pymap:
pymap.write(msg)
# Create an array buffer containing the mapped filename
- char_buffer = array.array("c", map_name + '\0')
+ char_buffer = array.array("c", b(map_name) + zero_byte)
char_buffer_address, char_buffer_size = char_buffer.buffer_info()
# Create a string to use for the SendMessage function call
cds = COPYDATASTRUCT(_AGENT_COPYDATA_ID, char_buffer_size,