diff --git a/libfreerdp/core/capabilities.c b/libfreerdp/core/capabilities.c index ba7ca6e64..49e17062f 100644 --- a/libfreerdp/core/capabilities.c +++ b/libfreerdp/core/capabilities.c @@ -3811,7 +3811,7 @@ static BOOL rdp_read_capability_sets(wStream* s, rdpSettings* settings, UINT16 n WLog_ERR(TAG, "incorrect offset, type:0x%04" PRIX16 " actual:%" PRIuz " expected:%" PRIu16 "", - type, rest + length, length); + type, length - rest, length); } numberCapabilities--;