From 8b2a1fd1d342e45cbd9a1168d34939fb5bed2a2b Mon Sep 17 00:00:00 2001 From: mdw Date: Fri, 24 Jan 2003 20:16:04 +0000 Subject: [PATCH] Fix stupidity in reading wordlists from stdin. (Thanks to James Harvey.) --- mkphrase.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) { -- 2.11.0