Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBenoit Perrin2012-10-23 06:45:36 +0000
committerAnton Leherbauer2012-10-23 06:45:36 +0000
commitd51f3ad7fe8450ee399511595c9cea58d8c42a19 (patch)
tree85d7e16b56ac970fdbfcb8de0a4a39d7aec00a9d /python
parentc7465d3975386a92cf43b6ec29cf2c1ba38fe235 (diff)
downloadorg.eclipse.tcf-d51f3ad7fe8450ee399511595c9cea58d8c42a19.tar.gz
org.eclipse.tcf-d51f3ad7fe8450ee399511595c9cea58d8c42a19.tar.xz
org.eclipse.tcf-d51f3ad7fe8450ee399511595c9cea58d8c42a19.zip
TCF Python: Bug 392583 - Fix packet header removal
Diffstat (limited to 'python')
-rw-r--r--python/src/tcf/services/local/LocatorService.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/src/tcf/services/local/LocatorService.py b/python/src/tcf/services/local/LocatorService.py
index 468d0a06b..dffd3556a 100644
--- a/python/src/tcf/services/local/LocatorService.py
+++ b/python/src/tcf/services/local/LocatorService.py
@@ -528,6 +528,7 @@ class LocatorService(locator.LocatorService):
@return a map containing the attributes
"""
attrs = {}
+ # Remove packet header
s = data[8:size].decode("UTF-8")
l = len(s)
i = 0
@@ -555,7 +556,7 @@ class LocatorService(locator.LocatorService):
"""
cnt = 0
attrs = {}
- s = data[8:size - 8].decode("UTF-8")
+ s = data[8:].decode("UTF-8")
l = len(s)
i = 0
while i < l:

Back to the top