X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=edit.c;h=ff581b0caf1057adf7805b5e2ffa0d3fa277a713;hp=88eeca369f6f1eac85fa3a8f73cbb2a8af449fc3;hb=4eaac5c4a87b84ea9ec0668b4e088ac27e2d1106;hpb=ba5e3af4ea19e1d20c80941c077039871ec84258 diff --git a/edit.c b/edit.c index 88eeca3..ff581b0 100644 --- a/edit.c +++ b/edit.c @@ -14,6 +14,8 @@ #endif #include "mutt.h" +#include "ascii.h" +#include "enter.h" #include "mutt_curses.h" #include "mutt_idna.h" @@ -33,7 +35,7 @@ * SLcurses_waddnstr() can't take a "const char *", so this is only * declared "static" (sigh) */ -static char *EditorHelp = N_("\ +static const char *EditorHelp = N_("\ ~~ insert a line begining with a single ~\n\ ~b users add users to the Bcc: field\n\ ~c users add users to the Cc: field\n\ @@ -54,7 +56,7 @@ static char *EditorHelp = N_("\ . on a line by itself ends input\n"); static char **be_snarf_data (FILE * f, char **buf, int *bufmax, int *buflen, - int offset, int bytes, int prefix) + off_t offset, int bytes, int prefix) { char tmp[HUGE_STRING]; char *p = tmp; @@ -68,7 +70,7 @@ static char **be_snarf_data (FILE * f, char **buf, int *bufmax, int *buflen, tmplen = sizeof (tmp) - tmplen; } - fseek (f, offset, 0); + fseeko (f, offset, 0); while (bytes > 0) { if (fgets (p, tmplen - 1, f) == NULL) break;