Skip to content

Commit b2a3190

Browse files
committed
Split on hex null character
1 parent 6a68d7b commit b2a3190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instana/fsm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def announce_sensor(self, e):
113113
if os.path.isfile("/proc/self/cmdline"):
114114
with open("/proc/self/cmdline") as cmd:
115115
cmdinfo = cmd.read()
116-
cmdline = cmdinfo.split("\0")
116+
cmdline = cmdinfo.split('\x00')
117117
else:
118118
cmdline = [os.path.basename(sys.executable)]
119119
cmdline += sys.argv

0 commit comments

Comments
 (0)