Code

wreadln: use memmove() instead of an temporary buffer
authorMax Kellermann <max@duempel.org>
Mon, 6 Oct 2008 12:55:31 +0000 (14:55 +0200)
committerMax Kellermann <max@duempel.org>
Mon, 6 Oct 2008 12:55:31 +0000 (14:55 +0200)
commit62388ceda61d89a9a58c5ba6181150912f67b93a
tree0924bcecf8444d7461b9b56969e72a130175166e
parent147e3849ba1f451d195e33f1eb35ab5a7b86f035
wreadln: use memmove() instead of an temporary buffer

memmove() handles overlapping buffers well, we can use it to get room
for the inserted character.
src/wreadln.c