commit | 3c38f29a615a6da97088332d71883e4a617088f3 | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Fri Jun 13 17:37:46 2014 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Sat Jun 14 16:46:43 2014 +0200 |
tree | 4ea239dda8a8da1e77112ad9d1fe878d8bb13000 | |
parent | 346177255931fb1e3514e124a1f598715a5fe92d [diff] [blame] |
Fix DER output of gen_key app (found by Gergely Budai)
diff --git a/programs/pkey/gen_key.c b/programs/pkey/gen_key.c index 7c8efef..2f3ba35 100644 --- a/programs/pkey/gen_key.c +++ b/programs/pkey/gen_key.c
@@ -143,7 +143,7 @@ return( ret ); len = ret; - c = output_buf + sizeof(output_buf) - len - 1; + c = output_buf + sizeof(output_buf) - len; } if( ( f = fopen( output_file, "w" ) ) == NULL )