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)
commit26d8b550caf928eeca0bc70d5dd11580e7cdc2f2
tree3f7afde286a60ca120264740a7fe08c139c00d6f
parentacabe560a31af729e82b2b4581a340d028af0756
sysdep.c: cprintf() truncation fix (Phil Slack)

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.
citadel/server/sysdep.c