Fix bug where array length was off by one.

This fixes the bug mentioned in 4be90889d3cc5d283803aa155c5ca8f0f5de58e1.

I was incorrectly recording the signature_length as one more than it really
was. Fix it by decrementing the counter before setting it.