diff options
author | Václav Doležal <vdolezal@redhat.com> | 2018-11-07 16:10:23 +0100 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2018-11-18 16:00:42 +0100 |
commit | bea9483c3547d0befad328389ce283b3cbeb3aec (patch) | |
tree | 45fe143685ce88f02b5c8fc16bbfc65efd242d45 | |
parent | 908458c7c3320697ec44ce0e402d5818699d993a (diff) | |
download | screen-bea9483c3547d0befad328389ce283b3cbeb3aec.tar.gz |
Use memcpy(3) in string substitution
Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net
-rw-r--r-- | src/screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c index c3417e3..0d37195 100644 --- a/src/screen.c +++ b/src/screen.c @@ -1271,7 +1271,7 @@ int main(int ac, char** av) ap = av0 + strlen(av0) - 1; while (ap >= av0) { if (!strncmp("screen", ap, 6)) { - strncpy(ap, "SCREEN", 6); /* name this process "SCREEN-BACKEND" */ + memcpy(ap, "SCREEN", 6); /* name this process "SCREEN-BACKEND" */ break; } ap--; |