diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-12-29 12:54:07 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-01-05 23:31:20 +0100 |
commit | 2a4af0c74c7a167477d57dd1d065782516313c9b (patch) | |
tree | a46015636d30c7430baba8ff09a8ae9813a77a1f /nxcomp/src/SetClipRectangles.cpp | |
parent | ce43e4346fd8c4262f14b8abcddad209e021fbf1 (diff) | |
download | nx-libs-2a4af0c74c7a167477d57dd1d065782516313c9b.tar.gz nx-libs-2a4af0c74c7a167477d57dd1d065782516313c9b.tar.bz2 nx-libs-2a4af0c74c7a167477d57dd1d065782516313c9b.zip |
Error.c: fix format-truncation warning
Error.c: In function ‘nxagentGetSessionPath’:
Error.c:543:62: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 253 [-Wformat-truncation=]
snprintf(nxagentSessionDir, DEFAULT_STRING_LENGTH, "%s/C-%s", rootPath, nxagentSessionId);
^~ ~~~~~~~~~~~~~~~~
Error.c:543:5: note: ‘snprintf’ output 4 or more bytes (assuming 259) into a destination of size 256
snprintf(nxagentSessionDir, DEFAULT_STRING_LENGTH, "%s/C-%s", rootPath, nxagentSessionId);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'nxcomp/src/SetClipRectangles.cpp')
0 files changed, 0 insertions, 0 deletions