diff options
author | Helge Deller <deller@gmx.de> | 2013-07-02 23:50:10 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2013-07-02 23:50:10 +0200 |
commit | 55b845ff8a4706e27019cf28660aa8ebd5852ab1 (patch) | |
tree | 5bda1e16d722d7340138f0ea6a2131b37670eb13 | |
parent | d11b35436576113e12daa8a54fc2bb261818f801 (diff) | |
download | palo-55b845ff8a4706e27019cf28660aa8ebd5852ab1.tar.gz |
make sure we print \r\n, not \n\r
-rw-r--r-- | ipl/pdc_cons.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ipl/pdc_cons.c b/ipl/pdc_cons.c index a4a7e2e..b360422 100644 --- a/ipl/pdc_cons.c +++ b/ipl/pdc_cons.c @@ -35,8 +35,9 @@ puts(const char *s) while ((nuline = strchr(s, '\n')) != NULL) { - pdc_iodc_cout(s, nuline - s + 1); - pdc_iodc_cout("\r", 1); + if (nuline != s) + pdc_iodc_cout(s, nuline - s); + pdc_iodc_cout("\r\n", 2); s = nuline + 1; } if (*s != '\0') |