From 99f541c1e4499ff8fda65c67c2038d5b65c15e67 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Thu, 9 Apr 2020 19:08:11 +0200 Subject: Font.c: add hint of deliberate pointer misuse --- nx-X11/programs/Xserver/hw/nxagent/Font.c | 4 ++++ nx-X11/programs/Xserver/hw/nxagent/NXdixfonts.c | 7 ++++--- 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 -- cgit v1.2.3