openac: Fixed potential overflow while reading passphrase.

This commit is contained in:
Tobias Brunner
2011-04-19 13:48:51 +02:00
parent 68e9275134
commit 2bf1d44f7b
+1 -1
View File
@@ -327,7 +327,7 @@ int main(int argc, char **argv)
continue; continue;
case 'p': /* --key */ case 'p': /* --key */
if (strlen(optarg) > BUF_LEN) if (strlen(optarg) >= BUF_LEN)
{ {
usage("passphrase too long"); usage("passphrase too long");
goto end; goto end;