author | Sebastian Harl <sh@tokkee.org> | |
Fri, 8 Dec 2006 14:13:26 +0000 (15:13 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Fri, 8 Dec 2006 14:29:34 +0000 (15:29 +0100) | ||
commit | 58cf54014c4a4b501dcd1ac4a5410db4348859be | |
tree | 922057d5036ea0f04f2c6e8636f68be1011a9d3e | tree | snapshot |
parent | f058adfa20f3a17eba344d1613c634c137980875 | commit | diff |
email plugin: Do not allocate memory for the return value in read_line ().
The read_line () function now uses the provided buffer to save the return
value to. In case no complete line could be read, read_line () is called
recursively until '\n' has been found or end-of-file has been reached.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
The read_line () function now uses the provided buffer to save the return
value to. In case no complete line could be read, read_line () is called
recursively until '\n' has been found or end-of-file has been reached.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
src/email.c | diff | blob | history |