aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/patch
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2013-07-03 22:46:30 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2013-07-03 22:46:30 +0000
commit6d85e39be1690c85a4286b75e0c9e141d242fb8d (patch)
treef06c5a5fe068dd01397380714c832827adb30a61 /usr.bin/patch
parent0571fd57a11a605e64763b4d62ab1d20de989b31 (diff)
Notes
Diffstat (limited to 'usr.bin/patch')
-rw-r--r--usr.bin/patch/pch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/patch/pch.c b/usr.bin/patch/pch.c
index c4792b203540..c6224e7f234c 100644
--- a/usr.bin/patch/pch.c
+++ b/usr.bin/patch/pch.c
@@ -1204,7 +1204,7 @@ pgets(bool do_indent)
indent++;
}
}
- strncpy(buf, line, len - skipped);
+ memcpy(buf, line, len - skipped);
buf[len - skipped] = '\0';
}
return len;