diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2013-07-02 17:17:42 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2013-07-02 17:17:42 +0000 |
| commit | a559a5a94fc7d293c70329b023cd17a19a66978f (patch) | |
| tree | f7d567919fa237a964cf611381c906139bef1aaf /gnu | |
| parent | 07b3f0f7db7ec4cc407a26f20b9f545c92a571e3 (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/patch/pch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/patch/pch.c b/gnu/usr.bin/patch/pch.c index e2c9548a808b4..37bbe56b357ed 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; |
