X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mx.c;h=27947b4b1847e87979ad56bff3b1e35e00d0b5d7;hp=6cc2a3b258bb4b072bb1556286baec265cb923f1;hb=169f101dc43f0581d8c52bcf8131d9eecb7cdeb0;hpb=ba5e3af4ea19e1d20c80941c077039871ec84258 diff --git a/mx.c b/mx.c index 6cc2a3b..27947b4 100644 --- a/mx.c +++ b/mx.c @@ -13,11 +13,13 @@ #endif #include "mutt.h" +#include "ascii.h" #include "mx.h" #include "mbox.h" #include "mh.h" #include "rfc2047.h" #include "sort.h" +#include "thread.h" #include "copy.h" #include "keymap.h" #include "url.h" @@ -199,6 +201,7 @@ int mx_lock_file (const char *path, int fd, int excl, int dot, int timeout) count = 0; attempt = 0; + prev_sb.st_size = 0; while (fcntl (fd, F_SETLK, &lck) == -1) { struct stat sb;