From aa3f3ea95f78f9710059c5729be6a68aeb73c5e8 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 31 Jan 2022 10:30:19 +0100 Subject: [PATCH] Fixed const warnings --- client/common/cmdline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/common/cmdline.c b/client/common/cmdline.c index 13e7701ac..197edc9c6 100644 --- a/client/common/cmdline.c +++ b/client/common/cmdline.c @@ -1475,10 +1475,10 @@ static BOOL read_pem_file(rdpSettings* settings, size_t id, const char* file) if (rc < 0) goto fail; - if (!freerdp_settings_set_string_len(settings, id, NULL, s + 1)) + if (!freerdp_settings_set_string_len(settings, id, NULL, s + 1ull)) goto fail; - ptr = freerdp_settings_get_string(settings, id); + ptr = freerdp_settings_get_string_writable(settings, id); fr = fread(ptr, (size_t)s, 1, fp); if (fr != 1) goto fail;