diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-03 17:17:50 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-03 17:17:50 -0700 |
commit | 230df18221211dbbe064c561fa9bcc7ac87c0872 (patch) | |
tree | aafa2d016d1d4a87af8b4e65833dfca420270270 | |
parent | e4188606121f82aa14516c7fcab6680df050002d (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |