forked from Lainports/freebsd-ports
15 lines
550 B
Text
15 lines
550 B
Text
--- apg.c 2001/01/17 09:01:19 1.1.1.3
|
|
+++ apg.c 2001/01/15 11:33:01 1.2
|
|
@@ -342,9 +342,10 @@
|
|
char * seq;
|
|
UINT32 prom = 0L;
|
|
|
|
- printf ("\nPlease enter some random data (only first 4 are significant)\n");
|
|
+ printf ("\nPlease enter some random data (only the first %d characters "
|
|
+ "are significant)\n", sizeof(prom));
|
|
seq = (char *)getpass("(eg. your old password):>");
|
|
- if (strlen(seq) < 4)
|
|
+ if (strlen(seq) < sizeof(prom))
|
|
bcopy((void *)seq, (void *)&prom, (int)strlen(seq));
|
|
else
|
|
bcopy((void *)seq, (void *)&prom, sizeof(prom));
|