aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Display.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-01-03 00:06:39 +0100
committerUlrich Sibiller <uli42@gmx.de>2018-01-07 01:27:07 +0100
commit525e151681ec93657f027645ff0d8e0d487d6abf (patch)
tree674f42cf9dd9a486efc9828f885038979bc60d0c /nx-X11/programs/Xserver/hw/nxagent/Display.c
parent7d87e5a0c009e57f484a21f2c47d84574db7847f (diff)
downloadnx-libs-525e151681ec93657f027645ff0d8e0d487d6abf.tar.gz
nx-libs-525e151681ec93657f027645ff0d8e0d487d6abf.tar.bz2
nx-libs-525e151681ec93657f027645ff0d8e0d487d6abf.zip
Error.c: replace strcpy/strcat by snprintf
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Display.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Display.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Display.c b/nx-X11/programs/Xserver/hw/nxagent/Display.c
index b78530e37..31efab8c3 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Display.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Display.c
@@ -1873,8 +1873,7 @@ static FILE *nxagentLookForIconFile(char *iconName, const char *permission,
/* append slash and icon name */
if (strlen(singlePath) + strlen(iconName) + 1 < sizeof(singlePath))
{
- strncat(singlePath, slash, 1);
- strcat(singlePath, iconName);
+ snprintf(singlePath + strlen(singlePath), sizeof(singlePath), "%s%s", slash, iconName);
if ((fptr = fopen(singlePath, permission)) != NULL)
{