Code

wreadln: use memcpy() for both cases
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)
commit3a92aa17478c901b1704fb935723783b11f193e7
tree75cd382c180f31e56eafdaaa077c8ec9a89be361
parent62388ceda61d89a9a58c5ba6181150912f67b93a
wreadln: use memcpy() for both cases

Use memcpy() even when the cursor is at the end.  It copies only the
trailing null terminator in this case.

The constant "length" is declared here in preparation for the "wide
character" patches.
src/wreadln.c