diff options
author | Paul Smith <psmith@gnu.org> | 2013-05-26 14:41:45 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-05-26 14:41:45 -0400 |
commit | 74d4cf5630f7028e2a615b8ff140f0b6e6d95ae1 (patch) | |
tree | f787d5b91d5ef0c3db9653d551bd55bfa4b8c22e /read.c | |
parent | 54ce9982f952a9c8f2a9a0935edaff51f962d339 (diff) | |
download | make-74d4cf5630f7028e2a615b8ff140f0b6e6d95ae1.tar.gz |
[SV #38945] Copy the entire buffer back when overwriting CR
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2542,7 +2542,7 @@ readline (struct ebuffer *ebuf) if ((p - start) > 1 && p[-2] == '\r') { --p; - p[-1] = '\n'; + memmove (p-1, p, strlen (p) + 1); } #endif |