Dialog.c: fix format-truncation warning
Dialog.c: In function ‘nxagentLaunchDialog’:
Dialog.c:320:53: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 256 [-Wformat-truncation=]
snprintf(dialogDisplay, sizeof(dialogDisplay), "%s", nxagentDisplayName);
^~ ~~~~~~~~~~~~~~~~~~
Dialog.c:320:5: note: ‘snprintf’ output between 1 and 1024 bytes into a destination of size 256
snprintf(dialogDisplay, sizeof(dialogDisplay), "%s", nxagentDisplayName);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Showing
Please
register
or
sign in
to comment