X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sendlib.c;h=b3f08b8e2971919f94c3a2a893a67512b57e8eb7;hp=05191c97fe979d92f5c8cc784cfa019764045981;hb=1601b25fd310dd65a6b6d1b49f2e16f55560ac9d;hpb=07449b789713bd8716a02214f536dfd72f3549b1 diff --git a/sendlib.c b/sendlib.c index 05191c9..b3f08b8 100644 --- a/sendlib.c +++ b/sendlib.c @@ -27,6 +27,7 @@ #include "charset.h" #include "mutt_crypt.h" #include "mutt_idna.h" +#include "svnrev.h" #include "lib/mem.h" #include "lib/str.h" @@ -805,7 +806,7 @@ CONTENT *mutt_get_content_info (const char *fname, BODY * b) CONTENT *info; CONTENT_STATE state; FILE *fp = NULL; - char *fromcode; + char *fromcode = NULL; char *tocode; char buffer[100]; char chsbuf[STRING]; @@ -1615,7 +1616,7 @@ int mutt_write_rfc822_header (FILE * fp, ENVELOPE * env, BODY * attach, } } /* Add a vanity header */ - fprintf (fp, "User-Agent: mutt-ng/%s (%s)\n", MUTT_VERSION, os); + fprintf (fp, "User-Agent: %s (%s)\n", mutt_make_version (0), os); } return (ferror (fp) == 0 ? 0 : -1);