prepare to upload
[debian/sudo] / lbuf.c
diff --git a/lbuf.c b/lbuf.c
index e64f76bdd0e98d34ddc51f3936934ce484d291aa..bd218da873b32cc7ef68cce0245cf230659cff14 100644 (file)
--- a/lbuf.c
+++ b/lbuf.c
@@ -282,14 +282,15 @@ lbuf_print(lbuf)
 
     /* For very small widths just give up... */
     if (lbuf->cols <= lbuf->indent + contlen + 20) {
-       puts(lbuf->buf);
+       lbuf->output(lbuf->buf);
+       lbuf->output("\n");
        goto done;
     }
 
     /* Print each line in the buffer */
     for (cp = lbuf->buf; cp != NULL && *cp != '\0'; ) {
        if (*cp == '\n') {
-           putchar('\n');
+           lbuf->output("\n");
            cp++;
        } else {
            ep = memchr(cp, '\n', lbuf->len - (cp - lbuf->buf));