diff options
author | Brian Havard <bjh@apache.org> | 2000-12-23 03:07:10 +0000 |
---|---|---|
committer | Brian Havard <bjh@apache.org> | 2000-12-23 03:07:10 +0000 |
commit | 1330536b65641d2892d5914da451cececf59da92 (patch) | |
tree | c4db753d39a74adaf3ee29b58c0ffecef4ac58e4 /dso | |
parent | 45b80340b272835df1e220f333169160d1354d2f (diff) | |
download | apr-1330536b65641d2892d5914da451cececf59da92.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: https://svn.apache.org/repos/asf/apr/apr/trunk@60988 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso')
-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; |