summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-02-04 09:59:03 +0100
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:06 +0100
commitd7077bdad052a64f1e57ba137a5461b670d52787 (patch)
treeec601439e426574fca9bcd6c9db5c593ed243e08
parenteabaabaaafe9daa690432059261143b0e4fecfe5 (diff)
do not allow the ui module to query the clipboard contents
-rw-r--r--src/client/cl_ui.c22
1 files changed, 1 insertions, 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
@@ -641,26 +641,6 @@ static void CL_GetGlconfig( glconfig_t *config ) {
/*
====================
-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: