]> diplodocus.org Git - nmh/blobdiff - uip/forw.c
Use a dynamically-allocated buffer for character set conversion, and
[nmh] / uip / forw.c
index 9eeb6123d6864d839c73524c31e2bac2d4b78474..2139d35cffa5a8c5c1bbf17fe253f64ef4ca8d42 100644 (file)
@@ -116,14 +116,9 @@ main (int argc, char **argv)
     char **argp, **arguments;
     struct stat st;
     struct msgs_array msgs = { 0, 0, NULL };
-
     int buildsw = 0;
 
-    setlocale(LC_ALL, "");
-    invo_name = r1bindex (argv[0], '/');
-
-    /* read user profile/context */
-    context_read();
+    if (nmh_init(argv[0], 1)) { return 1; }
 
     arguments = getarguments (invo_name, argc, argv, 1);
     argp = arguments;