diff options
author | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2000-06-03 17:01:29 +0000 |
---|---|---|
committer | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2000-06-03 17:01:29 +0000 |
commit | a3fd14e2608533f015e881f95e63ad907bacb2f0 (patch) | |
tree | 3aaf9dca6e77b443698b3492b5fabe52dd5c8083 /dso | |
parent | cc7b6e66a3f4d81e6931b0a6b0ed521b17e06839 (diff) | |
download | libapr-a3fd14e2608533f015e881f95e63ad907bacb2f0.tar.gz |
Fix the ap_dso_error function. Not sure if this is what was intended
or not when it was added, but it follows what other implementations do.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60141 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso')
-rw-r--r-- | dso/beos/dso.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dso/beos/dso.c b/dso/beos/dso.c index 76b5d2b9e..0eb280bf5 100644 --- a/dso/beos/dso.c +++ b/dso/beos/dso.c @@ -99,9 +99,10 @@ ap_status_t ap_dso_sym(ap_dso_handle_sym_t *ressym, ap_dso_handle_t *handle, return APR_SUCCESS; } -char *ap_dso_error(char *buf, int bufsize, ap_status_t errcode) +char *ap_dso_error(ap_dso_handle_t *dso, char *buffer, ap_size_t buflen) { - return strerror(errno); + strncpy(strerror(errno), buffer, buflen); + return buffer; } #endif |