diff options
author | Bodo Möller <bodo@openssl.org> | 2000-04-14 23:36:15 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-04-14 23:36:15 +0000 |
commit | e5c84d5152c11a3dfa436041d3336a6f403baad8 (patch) | |
tree | 3351388a5836293b03eb594d42379fca04a13d44 /apps/errstr.c | |
parent | d49f3797a5a891ebc13ea12eb64c55d1eb53c5c1 (diff) | |
download | openssl-e5c84d5152c11a3dfa436041d3336a6f403baad8.tar.gz |
New function ERR_error_string_n.
Diffstat (limited to 'apps/errstr.c')
-rw-r--r-- | apps/errstr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/errstr.c b/apps/errstr.c index 4650379589..2c62046476 100644 --- a/apps/errstr.c +++ b/apps/errstr.c @@ -104,7 +104,10 @@ int MAIN(int argc, char **argv) for (i=1; i<argc; i++) { if (sscanf(argv[i],"%lx",&l)) - printf("%s\n",ERR_error_string(l,buf)); + { + ERR_error_string_n(l, buf, sizeof buf); + printf("%s\n",buf); + } else { printf("%s: bad error code\n",argv[i]); |