From 6e2cc358ba048e637271ac62de48af8be3ae76e4 Mon Sep 17 00:00:00 2001 From: David Fort Date: Tue, 13 Aug 2024 15:08:30 +0200 Subject: [PATCH] cliprdr: fix message of error code log --- channels/cliprdr/cliprdr_common.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/channels/cliprdr/cliprdr_common.c b/channels/cliprdr/cliprdr_common.c index 3d47a89db..71b1496fc 100644 --- a/channels/cliprdr/cliprdr_common.c +++ b/channels/cliprdr/cliprdr_common.c @@ -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, "|"); const size_t len = strnlen(buffer, size); - if (len > 0) - { - /* remove trailing | */ - buffer[len - 1] = '\0'; - } - else + if (!len) winpr_str_append("NONE", buffer, size, ""); char val[32] = { 0 };