Merge pull request #10476 from hardening/cliprdr_log_fix

cliprdr: fix message of error code log
This commit is contained in:
akallabeth 2024-08-13 15:36:53 +02:00 committed by GitHub
commit 1f806f35db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,12 +75,7 @@ const char* CB_MSG_FLAGS_STRING(UINT16 msgFlags, char* buffer, size_t size)
winpr_str_append("CB_ASCII_NAMES", buffer, size, "|"); winpr_str_append("CB_ASCII_NAMES", buffer, size, "|");
const size_t len = strnlen(buffer, size); const size_t len = strnlen(buffer, size);
if (len > 0) if (!len)
{
/* remove trailing | */
buffer[len - 1] = '\0';
}
else
winpr_str_append("NONE", buffer, size, ""); winpr_str_append("NONE", buffer, size, "");
char val[32] = { 0 }; char val[32] = { 0 };