summaryrefslogtreecommitdiff
path: root/paramiko/message.py
diff options
context:
space:
mode:
authorJeremy T. Bouse <jbouse@debian.org>2009-11-27 16:25:55 -0500
committerJeremy T. Bouse <jbouse@debian.org>2009-11-27 16:28:36 -0500
commitf7b892905c62b94a6e54d115ee2d6d32d66af013 (patch)
treee98e4d71f62f37a514363fa35fff57390fab934e /paramiko/message.py
parente01182b1e91d796245e90e484d46416e52d8fd7d (diff)
downloadpython-paramiko-f7b892905c62b94a6e54d115ee2d6d32d66af013.tar
python-paramiko-f7b892905c62b94a6e54d115ee2d6d32d66af013.tar.gz
Imported Upstream version 1.7.6
Closes: #543784
Diffstat (limited to 'paramiko/message.py')
-rw-r--r--paramiko/message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/message.py b/paramiko/message.py
index 1a5151c..366c43c 100644
--- a/paramiko/message.py
+++ b/paramiko/message.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2003-2007 Robey Pointer <robey@lag.net>
+# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
@@ -111,7 +111,7 @@ class Message (object):
"""
b = self.packet.read(n)
if len(b) < n:
- return '\x00'*n
+ return b + '\x00' * (n - len(b))
return b
def get_byte(self):