After further review, this code should work best (but please feel free
to double-check my work):
logbufflen += (len = LOG_STR_MAX ? (len+1) : LOG_STR_MAX);
The attached patch contains this change (but is otherwise unaltered from
the original patch).
NOTE: The last message contained the
I believe the original patch that I submitted for this Debian bug may
have an off-by-one error when reallocating more space for a log message
that is longer than LOG_STR_MAX. In that case, I use the length of the
new message but don't add one to it (meaning that there will not be room
for the
Package: cvsps
Version: 2.0rc1-5
Severity: normal
Tags: patch
On anoncvs.opensource.apple.com (Apple's anonymous CVS server for
WebKit), some very long log entries were included in CVS. I got tired
of cvsps-2.1 truncating them, so I made the 'logbuff' buffer be
dynamically allocated.
Patch
3 matches
Mail list logo