diff --git a/scp.c b/scp.c index 677ead6b..03e4a673 100644 --- a/scp.c +++ b/scp.c @@ -12263,7 +12263,7 @@ while ((eol = strchr (debug_line_buf, '\n')) || flush) { } } debug_line_offset -= linesize; - if (debug_line_offset > 0) + if ((debug_line_offset > 0) && (!flush)) memmove (debug_line_buf, eol + 1, debug_line_offset); debug_line_buf[debug_line_offset] = '\0'; }