commit | a92c5455cdcc503fce9d814c98e2de769fcaa017 | [log] [tgz] |
---|---|---|
author | Christian Walther <walther@indel.ch> | Wed Nov 28 13:32:27 2018 +0100 |
committer | Christian Walther <walther@indel.ch> | Wed Nov 28 13:32:27 2018 +0100 |
tree | b8d64cabac4571e83021e0f4fda7c2e162e50eca | |
parent | 556d7d9e3b09157555310466a47e25a9ebfd8f4e [diff] [blame] |
Fix private DER output shifted by one byte.
diff --git a/programs/pkey/key_app_writer.c b/programs/pkey/key_app_writer.c index 13602c2..ebf6ad1 100644 --- a/programs/pkey/key_app_writer.c +++ b/programs/pkey/key_app_writer.c
@@ -173,7 +173,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 )