… | … | ||
---|---|---|---|
373 | case 'D': | 373 | case 'D': |
374 | mode = m_dictionary; | 374 | mode = m_dictionary; |
375 | break; | 375 | break; |
376 | 376 | ||
377 | case 'p': | 377 | case 'p': |
378 | if (strlen (optarg) > MAX_PW) | ||
379 | { | ||
380 | fprintf (stderr, "'%s' is too long: passwords longer than %d characters not supported\n", optarg, MAX_PW); | ||
381 | exit (1); | ||
382 | } | ||
383 | |||
378 | strcpy (pw, optarg); | 384 | strcpy (pw, optarg); |
379 | break; | 385 | break; |
380 | 386 | ||
381 | case 'l': | 387 | case 'l': |
382 | pw[0] = 0; | 388 | pw[0] = 0; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |