mirror of
https://git.savannah.gnu.org/git/screen.git
synced 2026-02-13 10:52:15 +02:00
Use memcpy(3) in string substitution
Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com> Signed-off-by: Amadeusz Sławiński <amade@asmblr.net
This commit is contained in:
committed by
Amadeusz Sławiński
parent
908458c7c3
commit
bea9483c35
@@ -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--;
|
||||
|
||||
Reference in New Issue
Block a user