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 | c11024b3b3532ef7eb80df7d55c8b2fcdc20ce93 (patch) | |
tree | f787d5b91d5ef0c3db9653d551bd55bfa4b8c22e /read.c | |
parent | 2fc0f614becf8e7de4fbd5b87cbc812b407ad39a (diff) | |
download | gunmake-c11024b3b3532ef7eb80df7d55c8b2fcdc20ce93.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 |