diff options
author | Teddy <ted.sybil@gmail.com> | 2013-08-26 10:22:24 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2013-08-26 10:22:24 +0800 |
commit | 595d0a7826e2fdb9ee859f9cde90cfef844b0342 (patch) | |
tree | 91c1a2c035a5cd92b4fbec42fc3a100d8015e74c /server/piztor/prob.py | |
parent | 9b9993e33932058cc78d1882a301eefd22380b45 (diff) |
fixed a bug in server
Diffstat (limited to 'server/piztor/prob.py')
-rw-r--r-- | server/piztor/prob.py | 3 |
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): |