]> code.citadel.org Git - citadel.git/commitdiff
sysdep.c: cprintf() truncation fix (Phil Slack)
authorArt Cancro <ajc@citadel.org>
Thu, 4 May 2023 22:11:24 +0000 (18:11 -0400)
committerArt Cancro <ajc@citadel.org>
Thu, 4 May 2023 22:11:24 +0000 (18:11 -0400)
Original code (sysdep.c) assumed a return code of -1 from vsnprintf()
was a truncation.  Actually, it is an output error and the code still
tried to output it.  A return of the buffer size or larger means it was
truncated.  Changed the processing to handle return values properly.


No differences found