diff options
Diffstat (limited to 'apps')
-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]); |