summaryrefslogtreecommitdiff
path: root/dso/unix
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-12-03 05:29:50 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-12-03 05:29:50 +0000
commitf5a1889c9b19e7eccb1b4c02b640b2768c856b36 (patch)
tree386859f144ec5d4a81e90aa2410533ff7625b57f /dso/unix
parentc95fa1ccac787df0b57cb0efc755ef897a019fd4 (diff)
downloadlibapr-f5a1889c9b19e7eccb1b4c02b640b2768c856b36.tar.gz
Get apr_dso_error working properly on Unix.
git-svn-id: http://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";
}