]> diplodocus.org Git - nmh/blobdiff - uip/mhstore.c
sbr/vector.c: Zero the growth with memset(3), not loop.
[nmh] / uip / mhstore.c
index 98e6239675592185cba448e156b67f68fa0bb014..2b844c2a2117ef0ac454cd098b8ad7d1af1099e4 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * mhstore.c -- store the contents of MIME messages
+/* mhstore.c -- store the contents of MIME messages
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -266,7 +264,7 @@ do_cache:
     /*
      * Cache the current directory before we do any chdirs()'s.
      */
-    cwd = add(pwd(), NULL);
+    cwd = mh_xstrdup(pwd());
 
     if (!context_find ("path"))
        free (path ("./", TFOLDER));