diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-06-30 17:15:05 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-09-29 17:10:05 +0200 |
commit | 022d64d2ac6bc66ad8246bfa320d991eda0b775e (patch) | |
tree | 4990aec166a3390639499e6d6e13e51979de5270 /nx-X11/programs | |
parent | 061f7dc9f4cd70354878c8f61395826b7c78b981 (diff) | |
download | nx-libs-022d64d2ac6bc66ad8246bfa320d991eda0b775e.tar.gz nx-libs-022d64d2ac6bc66ad8246bfa320d991eda0b775e.tar.bz2 nx-libs-022d64d2ac6bc66ad8246bfa320d991eda0b775e.zip |
Events.c: fix write after buffer end
Diffstat (limited to 'nx-X11/programs')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Events.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c index 0134c1007..4a31497da 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Events.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c @@ -544,9 +544,7 @@ void nxagentInternalWindowInfo(WindowPtr pWin, int indent, Bool newLine) if (result == Success && pszReturnData != NULL) { - pszReturnData[ulReturnItems] = '\0'; - - fprintf(stderr, "\"%s\"\n", (char *) pszReturnData); + fprintf(stderr, "\"%*.*s\"\n", (int)ulReturnItems, (int)ulReturnItems, (char *) pszReturnData); } else { |