[X2Go-Commits] [nx-libs] 59/108: Clipboard.c: Use constant instead of hardcoded value
git-admin at x2go.org
git-admin at x2go.org
Fri Nov 9 20:35:46 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository nx-libs.
commit 934d9eae6f92a69fc4fd2fe79c7b67689902c01c
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Wed Jul 25 22:13:30 2018 +0200
Clipboard.c: Use constant instead of hardcoded value
---
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index a02bd1c..285a738 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1696,7 +1696,7 @@ int nxagentInitClipboard(WindowPtr pWin)
free(lastSelectionOwner);
lastSelectionOwner = NULL;
- lastSelectionOwner = (SelectionOwner *) malloc(2 * sizeof(SelectionOwner));
+ lastSelectionOwner = (SelectionOwner *) malloc(nxagentMaxSelections * sizeof(SelectionOwner));
if (lastSelectionOwner == NULL)
{
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list