blob: d09733b34ef30d8408be0c9869836e276f87ea83 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- 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));
|