diff options
author | Eduardo Chappa <chappa@washington.edu> | 2013-10-13 02:08:28 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2013-10-13 02:08:28 -0600 |
commit | ee95edb6a42df4b45c82080c32f852781f289a02 (patch) | |
tree | 1fc71517846468677163b76dbf2400b59d7997b5 /pico/fileio.c | |
parent | 30a979ab1460a57d466a6a5cc6adb96eac452ce4 (diff) | |
download | alpine-ee95edb6a42df4b45c82080c32f852781f289a02.tar.xz |
* Fixes in Pico so that it will crash in big files, instead of looping
forever. Todo: see how this can be improved.
* Add support for UID EXPUNGE in selected folders.
Diffstat (limited to 'pico/fileio.c')
-rw-r--r-- | pico/fileio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pico/fileio.c b/pico/fileio.c index 5cf124c0..91eacf9d 100644 --- a/pico/fileio.c +++ b/pico/fileio.c @@ -95,6 +95,7 @@ ffgetline(UCS buf[], size_t nbuf, size_t *charsreturned, int msg) { size_t i; UCS ucs; + static int displayed = 0; if(charsreturned) *charsreturned = 0; @@ -121,8 +122,10 @@ ffgetline(UCS buf[], size_t nbuf, size_t *charsreturned, int msg) if(charsreturned) *charsreturned = nbuf - 1; - if(msg) + if(msg && displayed == 0){ emlwrite("File has long line", NULL); + displayed = 1; + } return FIOLNG; } |