Screws up my beautiful prompt if I ^C a copy job, plus uppercase "Cpu".

Index: pax.c
===================================================================
RCS file: /cvs/src/bin/pax/pax.c,v
retrieving revision 1.32
diff -u -p -r1.32 pax.c
--- pax.c       26 May 2011 14:42:06 -0000      1.32
+++ pax.c       11 Sep 2011 12:24:42 -0000
@@ -305,10 +305,10 @@ sig_cleanup(int which_sig)
 
        /* paxwarn() uses stdio; fake it as well as we can */
        if (which_sig == SIGXCPU)
-               strlcpy(errbuf, "Cpu time limit reached, cleaning up.",
+               strlcpy(errbuf, "CPU time limit reached, cleaning up.\n",
                    sizeof errbuf);
        else
-               strlcpy(errbuf, "Signal caught, cleaning up.",
+               strlcpy(errbuf, "Signal caught, cleaning up.\n",
                    sizeof errbuf);
        (void) write(STDERR_FILENO, errbuf, strlen(errbuf));

Reply via email to