summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/fdisk.c
diff options
context:
space:
mode:
authorFrank Kühndel <frank.kuehndel@embedded-brains.de>2020-10-05 16:49:14 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-12 08:46:48 +0200
commitf3df25b65cd81f9fff778902fdd34dbb09ca4c33 (patch)
treec7741f82cb458a1c1413783883e4e9957d9e068d /cpukit/libmisc/shell/fdisk.c
parentpsxndbm01 - Fixing string truncation warning (diff)
downloadrtems-f3df25b65cd81f9fff778902fdd34dbb09ca4c33.tar.bz2
cpukit/libmisc/monitor: Fix an illegal string copy
This is actually an illegal use of strcpy() because one is not allowed to use this function with overlapping source and destination buffers; whereas memmove() is explicitly designed to handle such cases. The compiler warning was: ../../../cpukit/libmisc/monitor/mon-editor.c:342:15: warning: 'strcpy' accessing 1 byte at offsets [0, 75] and [0, 75] overlaps 1 byte at offset [0, 74] [-Wrestrict]
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions