diff --git a/gnu/usr.bin/patch/pch.c b/gnu/usr.bin/patch/pch.c index e2c9548a808b..37bbe56b357e 100644 --- a/gnu/usr.bin/patch/pch.c +++ b/gnu/usr.bin/patch/pch.c @@ -1181,7 +1181,7 @@ pgets(bool do_indent) indent++; } } - Strncpy(buf, line, len - skipped); + memcpy(buf, line, len - skipped); buf[len - skipped] = '\0'; } return len;