From 04a8bcd8a5efac5b182b371cfd2d32f5b1ba1a1b Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 1 Oct 2024 11:20:04 +0200 Subject: [PATCH] [channels,cliprdr] make global strings arrays --- channels/cliprdr/client/cliprdr_main.c | 4 ++-- channels/cliprdr/client/cliprdr_main.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/channels/cliprdr/client/cliprdr_main.c b/channels/cliprdr/client/cliprdr_main.c index 2e1847a5f..eccbd0908 100644 --- a/channels/cliprdr/client/cliprdr_main.c +++ b/channels/cliprdr/client/cliprdr_main.c @@ -38,8 +38,8 @@ #include "cliprdr_format.h" #include "../cliprdr_common.h" -const char* type_FileGroupDescriptorW = "FileGroupDescriptorW"; -const char* type_FileContents = "FileContents"; +const char type_FileGroupDescriptorW[] = "FileGroupDescriptorW"; +const char type_FileContents[] = "FileContents"; CliprdrClientContext* cliprdr_get_client_interface(cliprdrPlugin* cliprdr) { diff --git a/channels/cliprdr/client/cliprdr_main.h b/channels/cliprdr/client/cliprdr_main.h index 9e899f597..94cffdd04 100644 --- a/channels/cliprdr/client/cliprdr_main.h +++ b/channels/cliprdr/client/cliprdr_main.h @@ -55,7 +55,7 @@ typedef struct CliprdrClientContext* cliprdr_get_client_interface(cliprdrPlugin* cliprdr); UINT cliprdr_send_error_response(cliprdrPlugin* cliprdr, UINT16 type); -extern const char* type_FileGroupDescriptorW; -extern const char* type_FileContents; +extern const char type_FileGroupDescriptorW[]; +extern const char type_FileContents[]; #endif /* FREERDP_CHANNEL_CLIPRDR_CLIENT_MAIN_H */