Don't allow insults to be enabled if the insults[] array is empty.
Otherwise there would be division by zero.
This commit is contained in:
@@ -224,9 +224,11 @@ pass_warn(fp)
|
|||||||
FILE *fp;
|
FILE *fp;
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#ifdef INSULT
|
||||||
if (def_flag(I_INSULTS))
|
if (def_flag(I_INSULTS))
|
||||||
(void) fprintf(fp, "%s\n", INSULT);
|
(void) fprintf(fp, "%s\n", INSULT);
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
(void) fprintf(fp, "%s\n", def_str(I_BADPASS_MSG));
|
(void) fprintf(fp, "%s\n", def_str(I_BADPASS_MSG));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user