summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-03 17:17:50 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-03 17:17:50 -0700
commit230df18221211dbbe064c561fa9bcc7ac87c0872 (patch)
treeaafa2d016d1d4a87af8b4e65833dfca420270270
parente4188606121f82aa14516c7fcab6680df050002d (diff)
Use memcpy() instead of memmove() when buffers are known not to overlap
Most of these came from a mass bcopy() -> memmove() substitution in 1993 with a commit comment of "ANSIfied for R6". Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--header.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/header.c b/header.c
index 1892276..01729a5 100644
--- a/header.c
+++ b/header.c
@@ -83,8 +83,8 @@ FindStringProperty(const char *propName,
#ifdef DEBUG
char pname[256];
- memmove( pname, propData + propOffset->name.position,
- propOffset->name.length);
+ memcpy(pname, propData + propOffset->name.position,
+ propOffset->name.length);
pname[propOffset->name.length] = '\0';
fprintf(stderr, "prop name: %s (len %d)\n",
pname, propOffset->name.length);