diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-08-23 23:27:57 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-08-23 23:27:57 +0200 |
commit | cfd221014c1e5337ec14503430c98ca620024f81 (patch) | |
tree | dab43957d533958230c6bf8471c86526825bf47f /src/plugins/python/weechat-python.c | |
parent | b459dab84bcc2fa30634c083c931797e3ca6f4f6 (diff) | |
download | weechat-cfd221014c1e5337ec14503430c98ca620024f81.zip |
api: add argument "bytes" in function string_dyn_concat
Diffstat (limited to 'src/plugins/python/weechat-python.c')
-rw-r--r-- | src/plugins/python/weechat-python.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/python/weechat-python.c b/src/plugins/python/weechat-python.c index 2515f6f08..d9731784d 100644 --- a/src/plugins/python/weechat-python.c +++ b/src/plugins/python/weechat-python.c @@ -444,13 +444,13 @@ weechat_python_output (PyObject *self, PyObject *args) ptr_msg = msg; while ((ptr_newline = strchr (ptr_msg, '\n')) != NULL) { - ptr_newline[0] = '\0'; - weechat_string_dyn_concat (python_buffer_output, ptr_msg); + weechat_string_dyn_concat (python_buffer_output, + ptr_msg, + ptr_newline - ptr_msg); weechat_python_output_flush (); - ptr_newline[0] = '\n'; ptr_msg = ++ptr_newline; } - weechat_string_dyn_concat (python_buffer_output, ptr_msg); + weechat_string_dyn_concat (python_buffer_output, ptr_msg, -1); } Py_INCREF(Py_None); |