]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - splitkeys.c
Add stripkey
[onak.git] / splitkeys.c
index 6cdf0a0abb1feb418400e5914cd0d014964833b6..73a94cddc42a4f396e9e835aeab6bb45748fb07b 100644 (file)
@@ -4,8 +4,6 @@
  * Jonathan McDowell <noodles@earth.li>
  * 
  * Copyright 2003 Project Purple
- *
- * $Id: splitkeys.c,v 1.2 2003/10/03 23:03:02 noodles Exp $
  */
 
 #include <fcntl.h>
@@ -42,7 +40,7 @@ int main(int argc, char *argv[])
                }
        }
 
-       readconfig();
+       readconfig(NULL);
        initlogthing("splitkeys", config.logfile);
 
        do {
@@ -58,6 +56,9 @@ int main(int argc, char *argv[])
                                        tmp->next = NULL;
                                }
                        }
+                       if (tmp->next != NULL) {
+                               list_end = NULL;
+                       }
 
                        snprintf(splitfile, 1023, "splitfile-%d.pgp", count);
                        outfd = open(splitfile, O_WRONLY | O_CREAT, 0664);