summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/shell.c
diff options
context:
space:
mode:
authorFrank Kühndel <frank.kuehndel@embedded-brains.de>2020-10-12 16:41:51 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-15 19:12:15 +0200
commit0a761a58c9097a0de04baf970f260594618090e8 (patch)
treed9b9c547b027e7a14f154ae135aaef3a3a52cab3 /cpukit/libmisc/shell/shell.c
parentRemove *_Is_null() inline functions (diff)
downloadrtems-0a761a58c9097a0de04baf970f260594618090e8.tar.bz2
fsdosfsname01: Fix string truncation warning
This patch fixes a compiler warning: ../../../testsuites/fstests/fsdosfsname01/init.c:430:19: warning: '%s' directive output may be truncated writing up to 6424 bytes into a region of size 257 [-Wformat-truncation=] The buffer 'dirname' is exactly large enough so that no truncation can ever occur. Using the return value of snprintf() is an official supported way to suppress the warning. I considered the comment of Joel Sherrill about not replacing snprintf(): https://lists.rtems.org/pipermail/devel/2020-September/062113.html
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions