diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2020-03-08 11:48:56 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2020-03-08 11:48:56 +0100 |
commit | f0859313b6b96149fd7f355f9bb6c32c842cff17 (patch) | |
tree | 195d7ab563a2d68596eac985ae5ed4337a1e8769 /notmuch-tcp-server | |
parent | 503cb545a2fc003e09c8a5c51af5188f10f26347 (diff) | |
download | utils-f0859313b6b96149fd7f355f9bb6c32c842cff17.tar utils-f0859313b6b96149fd7f355f9bb6c32c842cff17.tar.gz utils-f0859313b6b96149fd7f355f9bb6c32c842cff17.tar.bz2 utils-f0859313b6b96149fd7f355f9bb6c32c842cff17.tar.xz utils-f0859313b6b96149fd7f355f9bb6c32c842cff17.zip |
...
Diffstat (limited to 'notmuch-tcp-server')
-rw-r--r-- | notmuch-tcp-server | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/notmuch-tcp-server b/notmuch-tcp-server index 328b72c..50ac8be 100644 --- a/notmuch-tcp-server +++ b/notmuch-tcp-server | |||
@@ -75,6 +75,9 @@ with s as sock: | |||
75 | buffer.seek(0) | 75 | buffer.seek(0) |
76 | start_index = 0 | 76 | start_index = 0 |
77 | for line in buffer: | 77 | for line in buffer: |
78 | if not line.find(b"\n"): | ||
79 | break | ||
80 | |||
78 | start_index += len(line) | 81 | start_index += len(line) |
79 | escaped_args = line[:-1].decode() | 82 | escaped_args = line[:-1].decode() |
80 | break | 83 | break |