diff options
Diffstat (limited to 'security/apg/files/patch-ab')
-rw-r--r-- | security/apg/files/patch-ab | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/security/apg/files/patch-ab b/security/apg/files/patch-ab new file mode 100644 index 000000000000..d09733b34ef3 --- /dev/null +++ b/security/apg/files/patch-ab @@ -0,0 +1,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)); |