]> diplodocus.org Git - nmh/blobdiff - uip/folder.c
Makefile.am: Alter long lists to be sorted, one entry per line.
[nmh] / uip / folder.c
index 15c6941fecb53d922b5e3cca65e7cf8a485b41d6..23aea0b740adde862fe64c9f4beb6474d53c573f 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * folder(s).c -- set/list the current message and/or folder
+/* folder.c -- set/list the current message and/or folder
  *             -- push/pop a folder onto/from the folder stack
  *             -- list the folder stack
  *
@@ -336,7 +335,8 @@ main (int argc, char **argv)
            if (msg)
                inform("no folder given for message %s, continuing...", msg);
            readonly_folders (); /* do any readonly folders */
-           strncpy (folder, (cp = context_find (pfolder)) ? cp : "", sizeof(folder));
+           cp = context_find(pfolder);
+           strncpy (folder, FENDNULL(cp), sizeof(folder));
            crawl_folders (".", get_folder_info_callback, NULL);
        } else {
            strncpy (folder, argfolder, sizeof(folder));
@@ -600,7 +600,7 @@ print_folders (void)
 }
 
 /*
- * Set the current message and sychronize sequences
+ * Set the current message and synchronize sequences
  */
 
 static int