]> git.ipfire.org Git - pakfire.git/commitdiff
PTY: Remove carriage returns when passing data to the callback
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 25 Oct 2024 15:58:43 +0000 (15:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 25 Oct 2024 15:58:43 +0000 (15:58 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/pty.c

index 0025380ea5ff0c333594db0ad422b366ff2926d5..129f501a88f6cec5f05c6daf8f33bddbf448611a 100644 (file)
@@ -1326,8 +1326,8 @@ void pakfire_pty_set_stdin_callback(struct pakfire_pty* pty,
 void pakfire_pty_set_stdout_callback(struct pakfire_pty* pty,
                pakfire_pty_stdout_callback callback, void* data) {
        pty->stdout.callbacks.stdout_callback = callback;
-       pty->stdout.callbacks.data           = data;
+       pty->stdout.callbacks.data            = data;
 
        // We are now ready to write
-       pty->stdout.io |= PAKFIRE_PTY_READY_TO_WRITE;
+       pty->stdout.io |= PAKFIRE_PTY_READY_TO_WRITE|PAKFIRE_PTY_MAP_CRNL;
 }