diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2017-11-24 00:25:25 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2018-01-07 01:27:07 +0100 |
commit | 4a345786c6ee3b00882f015a7ac7d1d3215c0b9f (patch) | |
tree | fbae0fcf24922faac3c972c73bc89d624ecb727e /nx-X11/programs/Xserver/hw/nxagent/Reconnect.c | |
parent | 5987a7b1af09e97271be3da74d336a64435e759a (diff) | |
download | nx-libs-4a345786c6ee3b00882f015a7ac7d1d3215c0b9f.tar.gz nx-libs-4a345786c6ee3b00882f015a7ac7d1d3215c0b9f.tar.bz2 nx-libs-4a345786c6ee3b00882f015a7ac7d1d3215c0b9f.zip |
Dialog.c,Display.c,NXdixfonts.c: replace strncpy() by snprintf where appropriate
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Reconnect.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Reconnect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c b/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c index cafa219ec..4774579aa 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c @@ -139,7 +139,7 @@ char stateFile[PATH_MAX]; void setStatePath(char* path) { - strncpy(stateFile, path, PATH_MAX-1); + snprintf(stateFile, PATH_MAX, "%s", path); } void saveAgentState(char* state) |