Bug#315024: cvsps: dynamically allocate the log buffer to prevent warning messages

2005-07-26 Thread David D. Kilzer
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

Bug#315024: cvsps: dynamically allocate the log buffer to prevent warning messages

2005-07-26 Thread David D. Kilzer
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

Bug#315024: cvsps: dynamically allocate the log buffer to prevent warning messages

2005-06-20 Thread David D. Kilzer
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