From d7077bdad052a64f1e57ba137a5461b670d52787 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Wed, 4 Feb 2015 09:59:03 +0100 Subject: do not allow the ui module to query the clipboard contents --- src/client/cl_ui.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/client/cl_ui.c b/src/client/cl_ui.c index 225b81e0..5ad8e916 100644 --- a/src/client/cl_ui.c +++ b/src/client/cl_ui.c @@ -639,26 +639,6 @@ static void CL_GetGlconfig( glconfig_t *config ) { *config = cls.glconfig; } -/* -==================== -CL_GetClipboardData -==================== -*/ -static void CL_GetClipboardData( char *buf, int buflen ) { - char *cbd; - - cbd = Sys_GetClipboardData(); - - if ( !cbd ) { - *buf = 0; - return; - } - - Q_strncpyz( buf, cbd, buflen ); - - Z_Free( cbd ); -} - /* ==================== GetConfigString @@ -885,7 +865,7 @@ intptr_t CL_UISystemCalls( intptr_t *args ) { return 0; case UI_GETCLIPBOARDDATA: - CL_GetClipboardData( VMA(1), args[2] ); + ((char *)VMA(1))[0] = '\0'; return 0; case UI_GETCLIENTSTATE: -- cgit