aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-04-09 19:08:11 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-05-07 14:58:17 +0200
commit99f541c1e4499ff8fda65c67c2038d5b65c15e67 (patch)
treef4dad234f9acddb6789d514a82b2dae2f6862b09
parent58b3c8cdd7e1d31147ce52c2cd28714ac6d0039c (diff)
downloadnx-libs-99f541c1e4499ff8fda65c67c2038d5b65c15e67.tar.gz
nx-libs-99f541c1e4499ff8fda65c67c2038d5b65c15e67.tar.bz2
nx-libs-99f541c1e4499ff8fda65c67c2038d5b65c15e67.zip
Font.c: add hint of deliberate pointer misuse
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Font.c4
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXdixfonts.c7
2 files changed, 8 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Font.c b/nx-X11/programs/Xserver/hw/nxagent/Font.c
index 369ae3b2c..200a6fa61 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Font.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Font.c
@@ -452,6 +452,10 @@ Bool nxagentFontLookUp(const char *name)
}
}
+/*
+ * NXAGENT uses useless screen pointer to pass the original font name
+ * to realizeFont, could be a source of problems in the future.
+ */
Bool nxagentRealizeFont(ScreenPtr pScreen, FontPtr pFont)
{
#ifdef HAS_XFONT2
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXdixfonts.c b/nx-X11/programs/Xserver/hw/nxagent/NXdixfonts.c
index f351f5c3b..d563dee34 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXdixfonts.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXdixfonts.c
@@ -290,9 +290,10 @@ doOpenFont(ClientPtr client, OFclosurePtr c)
if (pScr->RealizeFont)
{
#ifdef NXAGENT_SERVER
- /* NXAGENT uses useless screen pointer to pass the original font name
- * to realizeFont, could be a source of problems in the future.
- */
+ /*
+ * NXAGENT uses useless screen pointer to pass the original font name
+ * to realizeFont, could be a source of problems in the future.
+ */
if (!(*pScr->RealizeFont) ((ScreenPtr)nxagentOrigFontName, pfont))
#else