Merge pull request #10476 from hardening/cliprdr_log_fix
cliprdr: fix message of error code log
This commit is contained in:
commit
1f806f35db
@ -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 };
|
||||||
|
Loading…
Reference in New Issue
Block a user