diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2018-07-25 22:13:30 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-10-27 20:55:02 +0200 |
commit | 934d9eae6f92a69fc4fd2fe79c7b67689902c01c (patch) | |
tree | 588fef5b09f7788b02e79fc45fc0c5de38c45e57 /nx-X11 | |
parent | f8bfdc87b3ba200f5cb9dba85682a445174209ba (diff) | |
download | nx-libs-934d9eae6f92a69fc4fd2fe79c7b67689902c01c.tar.gz nx-libs-934d9eae6f92a69fc4fd2fe79c7b67689902c01c.tar.bz2 nx-libs-934d9eae6f92a69fc4fd2fe79c7b67689902c01c.zip |
Clipboard.c: Use constant instead of hardcoded value
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index a02bd1cee..285a7380b 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) { |