summaryrefslogtreecommitdiff
path: root/server/piztor/prob.py
diff options
context:
space:
mode:
Diffstat (limited to 'server/piztor/prob.py')
-rw-r--r--server/piztor/prob.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/piztor/prob.py b/server/piztor/prob.py
index f18e42d..0ed328f 100644
--- a/server/piztor/prob.py
+++ b/server/piztor/prob.py
@@ -9,11 +9,12 @@ host = "localhost"
port = 9990
def gen_auth(username, password):
- length = 4 + 1 + len(username) + 1 + len(password)
+ length = 4 + 1 + len(username) + 1 + len(password) + 1
data = pack("!LB", length, 0x00)
data += username
data += "\0"
data += password
+ data += "\0"
return data
def gen_update_location(token, username, lat, lng):