Fix stupidity in reading wordlists from stdin. (Thanks to James
authormdw <mdw>
Fri, 24 Jan 2003 20:16:04 +0000 (20:16 +0000)
committermdw <mdw>
Fri, 24 Jan 2003 20:16:04 +0000 (20:16 +0000)
Harvey.)

mkphrase.c

index 2d1ea1b..cf325bb 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: mkphrase.c,v 1.2 2000/12/06 20:33:27 mdw Exp $
+ * $Id: mkphrase.c,v 1.3 2003/01/24 20:16:04 mdw Exp $
  *
  * Generate passphrases from word lists
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: mkphrase.c,v $
+ * Revision 1.3  2003/01/24 20:16:04  mdw
+ * Fix stupidity in reading wordlists from stdin.  (Thanks to James
+ * Harvey.)
+ *
  * Revision 1.2  2000/12/06 20:33:27  mdw
  * Make flags be macros rather than enumerations, to ensure that they're
  * unsigned.
@@ -420,7 +424,7 @@ int main(int argc, char *argv[])
   ctx = ops->init();
   while (*argv) {
     if (strcmp(*argv, "-") == 0)
-      ops->scan(ctx, stdin);
+      ops->scan(stdin, ctx);
     else {
       FILE *fp = fopen(*argv, "r");
       if (!fp) {