X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=main.c;h=66c5f7ad4c2fe5d5903e75bde226b79e5b1d0b1e;hp=9af3581011300a468739333435cacf085df1cad5;hb=9342efc81d163ea56e079b4adf2ce17c41c853b0;hpb=9a1efcc01ddeca4106847f8eb28a704aca2dcf0b diff --git a/main.c b/main.c index 9af3581..66c5f7a 100644 --- a/main.c +++ b/main.c @@ -20,6 +20,7 @@ #endif #include +#include #include #include "mutt.h" @@ -30,7 +31,6 @@ #include "mutt_idna.h" #include "xterm.h" -#include "lib/str.h" #include "lib/debug.h" #include @@ -602,8 +602,8 @@ int main (int argc, char **argv) SRAND (time (NULL)); umask (077); - memset (Options, 0, sizeof (Options)); - memset (QuadOptions, 0, sizeof (QuadOptions)); + p_clear(Options, sizeof(Options)); + p_clear(QuadOptions, sizeof(QuadOptions)); #ifdef USE_NNTP while ((i = @@ -872,7 +872,7 @@ int main (int argc, char **argv) } if (subject) - msg->env->subject = str_dup (subject); + msg->env->subject = m_strdup(subject); if (includeFile) infile = includeFile; @@ -880,7 +880,7 @@ int main (int argc, char **argv) if (infile || bodytext) { if (infile) { - if (str_cmp ("-", infile) == 0) + if (m_strcmp("-", infile) == 0) fin = stdin; else { char path[_POSIX_PATH_MAX]; @@ -899,7 +899,7 @@ int main (int argc, char **argv) fin = NULL; mutt_mktemp (buf); - tempfile = str_dup (buf); + tempfile = m_strdup(buf); if (draftFile) msg->env = mutt_read_rfc822_header (fin, NULL, 1, 0);