Use the passed buffer in ERR_error_string!
authorBen Laurie <ben@openssl.org>
Mon, 28 Aug 2000 10:57:01 +0000 (10:57 +0000)
committerBen Laurie <ben@openssl.org>
Mon, 28 Aug 2000 10:57:01 +0000 (10:57 +0000)
crypto/err/err.c

index f108bc0b81a6868c515cd3124ce1870661f7e548..bfecb86c754b65b23cfd8fe98337cdd68700217a 100644 (file)
@@ -535,7 +535,7 @@ char *ERR_error_string(unsigned long e, char *ret)
        static char buf[256];
 
        if (ret == NULL) ret=buf;
-       ERR_error_string_n(e, buf, 256);
+       ERR_error_string_n(e, ret, 256);
 
        return(ret);
        }