Skip to content

Commit 10db5fb

Browse files
author
Tony Crisci
authored
Merge pull request #68 from stapelberg/patch-1
Use native byte order everywhere
2 parents e51b091 + 2485110 commit 10db5fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

i3ipc/i3ipc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class Connection(object):
321321
MAGIC = 'i3-ipc' # safety string for i3-ipc
322322
_chunk_size = 1024 # in bytes
323323
_timeout = 0.5 # in seconds
324-
_struct_header = '<%dsII' % len(MAGIC.encode('utf-8'))
324+
_struct_header = '=%dsII' % len(MAGIC.encode('utf-8'))
325325
_struct_header_size = struct.calcsize(_struct_header)
326326

327327
def __init__(self, socket_path=None):

0 commit comments

Comments
 (0)