From 498fb720f2f8d57ea2b1ed108616c0076066d09d Mon Sep 17 00:00:00 2001 From: Koichiro Iwao Date: Fri, 8 Sep 2023 10:27:58 +0900 Subject: [PATCH] stash --- libxrdp/xrdp_caps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libxrdp/xrdp_caps.c b/libxrdp/xrdp_caps.c index f093516c1b..83ed0edfa0 100644 --- a/libxrdp/xrdp_caps.c +++ b/libxrdp/xrdp_caps.c @@ -592,7 +592,7 @@ xrdp_caps_process_codecs(struct xrdp_rdp *self, struct stream *s, int len) LOG(LOG_LEVEL_INFO, "xrdp_caps_process_codecs: JPEG(%s), codec id [%d], properties len [%d]", codec_guid_str, codec_id, codec_properties_length); self->client_info.jpeg_codec_id = codec_id; - i1 = MIN(64, codec_properties_length); + i1 = MIN(siseof(self->client_info.jpeg_prop), (size_t) codec_properties_length); g_memcpy(self->client_info.jpeg_prop, s->p, i1); self->client_info.jpeg_prop_len = i1; /* make sure that requested quality is between 0 to 100 */