From: mdw Date: Fri, 24 Jan 2003 20:16:04 +0000 (+0000) Subject: Fix stupidity in reading wordlists from stdin. (Thanks to James X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/commitdiff_plain/8b2a1fd1d342e45cbd9a1168d34939fb5bed2a2b Fix stupidity in reading wordlists from stdin. (Thanks to James Harvey.) --- diff --git a/mkphrase.c b/mkphrase.c index 2d1ea1b..cf325bb 100644 --- a/mkphrase.c +++ b/mkphrase.c @@ -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 * @@ -30,6 +30,10 @@ /*----- 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) {