summaryrefslogtreecommitdiff
path: root/dso/unix
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2000-12-03 05:29:50 +0000
committerRyan Bloom <rbb@apache.org>2000-12-03 05:29:50 +0000
commitdcacb33ddf6b291c65041c832f3661543217244f (patch)
tree386859f144ec5d4a81e90aa2410533ff7625b57f /dso/unix
parent14d075730125c67d12da00989051e2925c15e947 (diff)
downloadapr-dcacb33ddf6b291c65041c832f3661543217244f.tar.gz
Get apr_dso_error working properly on Unix.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60857 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso/unix')
-rw-r--r--dso/unix/dso.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dso/unix/dso.c b/dso/unix/dso.c
index d9c3f6295..14572dbfd 100644
--- a/dso/unix/dso.c
+++ b/dso/unix/dso.c
@@ -53,6 +53,7 @@
*/
#include "unix/dso.h"
+#include "apr_strings.h"
#if APR_HAS_DSO
@@ -147,8 +148,10 @@ apr_status_t apr_dso_sym(apr_dso_handle_sym_t *ressym,
const char *apr_dso_error(apr_dso_handle_t *dso, char *buffer, apr_size_t buflen)
{
- if (dso->errormsg)
+ if (dso->errormsg) {
+ apr_cpystrn(buffer, dso->errormsg, buflen);
return dso->errormsg;
+ }
return "No Error";
}