[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MOTD being shown twice



On Fri, Mar 12, 2004 at 05:07:29PM +0100, Thomas Kuiper wrote:
> > missing \n at end of file.
> Oh, so thats actually a bug then no? :)

That should fix it.

diff -u -r1.37 common/support.c
--- common/support.c   2004/02/15 13:17:40     1.37
+++ common/support.c   2004/03/13 00:43:30
@@ -715,6 +715,8 @@
                return 0;
            }
        tail += nr;
+       if (tail[-1]!='\n' && tail[-1]!='\r')
+               *tail++ = '\n';
        *tail = '\0';
        for (t = head; (s = index(t, '\n')); )
            {

p.

-- 
Beware of he who would deny you access to information, for in his
heart he dreams himself your master.   -- Commissioner Pravin Lal
http://nerdquiz.sgh.waw.pl/  -- polska wersja quizu dla nerdów ;)