VMS: fix collected error strings
authorRichard Levitte <levitte@openssl.org>
Sat, 24 Nov 2018 12:08:56 +0000 (13:08 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 24 Nov 2018 12:08:56 +0000 (13:08 +0100)
commit9f15e5b911ba6053e09578f190354568e01c07d7
treee046f4f4e208b4c1fd990ff0575b0c163528eb8e
parent8d9535ec3e317641b8e551973c8cfe2ee1c89296
VMS: fix collected error strings

It turns out that on VMS, strerror() returns messages with added
spaces at the end.

We wouldn't had noticed if it wasn't for perl trimming those spaces
off for its own sake and thereby having test/recipes/02-test_errstr.t
fail on VMS.

The safe fix is to do the same trimming ourselves.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7701)
crypto/err/err.c