diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-05-30 23:50:53 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2019-06-12 18:36:35 +0200 |
commit | d8f5e647c92b73835665c555d06c8814c7d0dbb5 (patch) | |
tree | 33d141ba1eba0468b244b177aa458267812445cc /nx-X11/programs/Xserver | |
parent | a765857aaa450862f6a3dc5de811671fbc82ca61 (diff) | |
download | nx-libs-d8f5e647c92b73835665c555d06c8814c7d0dbb5.tar.gz nx-libs-d8f5e647c92b73835665c555d06c8814c7d0dbb5.tar.bz2 nx-libs-d8f5e647c92b73835665c555d06c8814c7d0dbb5.zip |
NXwindow.c: fix compiler warning
NXwindow.c:265:27: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size 10 [-Wformat-overflow=]
sprintf(artsd_port,"%d", nPort);
^~
NXwindow.c:265:26: note: directive argument in the range [-2147476648, 2147483647]
sprintf(artsd_port,"%d", nPort);
^~~~
NXwindow.c:265:7: note: ‘sprintf’ output between 2 and 12 bytes into a destination of size 10
sprintf(artsd_port,"%d", nPort);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/NXwindow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXwindow.c b/nx-X11/programs/Xserver/hw/nxagent/NXwindow.c index 2fe37f79c..0851daf97 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/NXwindow.c +++ b/nx-X11/programs/Xserver/hw/nxagent/NXwindow.c @@ -296,7 +296,7 @@ InitRootWindow(WindowPtr pWin) #ifdef NXAGENT_ARTSD { char artsd_port[10]; - int nPort; + short int nPort; extern void nxagentPropagateArtsdProperties(ScreenPtr pScreen, char *port); nPort = atoi(display) + 7000; sprintf(artsd_port,"%d", nPort); |