diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2013-07-03 22:46:30 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2013-07-03 22:46:30 +0000 |
| commit | 6d85e39be1690c85a4286b75e0c9e141d242fb8d (patch) | |
| tree | f06c5a5fe068dd01397380714c832827adb30a61 /usr.bin/patch | |
| parent | 0571fd57a11a605e64763b4d62ab1d20de989b31 (diff) | |
Notes
Diffstat (limited to 'usr.bin/patch')
| -rw-r--r-- | usr.bin/patch/pch.c | 2 |
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; |
