bug-commoncpp
[Top][All Lists]
Advanced

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

1.9.3: overflow in Slog::overflow


From: Christoph Schlenker
Subject: 1.9.3: overflow in Slog::overflow
Date: 25 Mar 2002 13:57:50 +0100

Hi,

there is a small inconsistency, when I write more than 128 (or whatever
size of thread::_msgbuf is) characters into an slog, without including a
'\n' or a '\0'. Everything after character 128 gets lost:

slog.cpp
219:    if (thread->_msgpos < sizeof(thread->_msgbuf) - 1)
220:        thread->_msgbuf[thread->_msgpos++] = c;

Because the output could get mixed up with other writing threads, I
would just add the lines:
221:    else
222:    {  overflow('\n'); overflow(c); }

Can anyone add that or isn't that a good idea?

Thanks,
\Christoph

-- 
Christoph Schlenker
Schlund + Partner AG
Erbprinzenstr. 4-12                      Tel.0721/91374-388
76133 Karlsruhe                          Fax.0721/91374-212
http://www.schlund.de                    address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]