diff options
author | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2000-12-23 03:07:10 +0000 |
---|---|---|
committer | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2000-12-23 03:07:10 +0000 |
commit | db305e40f3c13163ac12476823b1aaa405819629 (patch) | |
tree | c4db753d39a74adaf3ee29b58c0ffecef4ac58e4 /dso/os2 | |
parent | c3c7d53ce0c281a9f456679c64fb1b9e1e0bf1e0 (diff) | |
download | libapr-db305e40f3c13163ac12476823b1aaa405819629.tar.gz |
OS/2: Allocate the right amount of space for an apr_dso_handle_t and provide
a bit more space for the name of the failed module as it can be a full path.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60988 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso/os2')
-rw-r--r-- | dso/os2/dso.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dso/os2/dso.c b/dso/os2/dso.c index 9bd9ccc8a..d3eb678bb 100644 --- a/dso/os2/dso.c +++ b/dso/os2/dso.c @@ -70,11 +70,11 @@ static apr_status_t dso_cleanup(void *thedso) apr_status_t apr_dso_load(apr_dso_handle_t **res_handle, const char *path, apr_pool_t *ctx) { - char failed_module[20]; + char failed_module[200]; HMODULE handle; int rc; - *res_handle = apr_pcalloc(ctx, sizeof(*res_handle)); + *res_handle = apr_pcalloc(ctx, sizeof(**res_handle)); (*res_handle)->cont = ctx; (*res_handle)->load_error = APR_SUCCESS; (*res_handle)->failed_module = NULL; |