Commit 9b96a0e
committed
util/helper: fix appending \n to unterminated final streamed chunks in ProcessWrapper
Addressing bytes by index returns an integer:
In [1]: b"foo\n"[-1]
Out[1]: 10
This means the condition is accidentally always true. Fix that by using
endswith().
Found by Claude Opus 4.8.
Signed-off-by: Bastian Krause <bst@pengutronix.de>1 parent 63749cf commit 9b96a0e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
0 commit comments