projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix distribution.
[u/mdw/catacomb]
/
mkphrase.c
diff --git
a/mkphrase.c
b/mkphrase.c
index
2d1ea1b
..
cf325bb
100644
(file)
--- a/
mkphrase.c
+++ b/
mkphrase.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-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
*
*
* Generate passphrases from word lists
*
@@
-30,6
+30,10
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: mkphrase.c,v $
/*----- 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.
* 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)
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) {
else {
FILE *fp = fopen(*argv, "r");
if (!fp) {