summaryrefslogtreecommitdiff
path: root/LICENSE.BSD-2-Clause
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 /LICENSE.BSD-2-Clause
parent4763ef8d9b3d80599b8ac9f1f4a4c613f087c0e0 (diff)
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 'LICENSE.BSD-2-Clause')
0 files changed, 0 insertions, 0 deletions