author | Max Kellermann <max@duempel.org> | |
Mon, 6 Oct 2008 12:55:31 +0000 (14:55 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 6 Oct 2008 12:55:31 +0000 (14:55 +0200) | ||
commit | 3a92aa17478c901b1704fb935723783b11f193e7 | |
tree | 75cd382c180f31e56eafdaaa077c8ec9a89be361 | tree | snapshot |
parent | 62388ceda61d89a9a58c5ba6181150912f67b93a | commit | diff |
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.
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 | diff | blob | history |