You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bj...@locus.apache.org on 2000/12/23 04:07:10 UTC

cvs commit: apr/dso/os2 dso.c

bjh         00/12/22 19:07:10

  Modified:    dso/os2  dso.c
  Log:
  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.
  
  Revision  Changes    Path
  1.16      +2 -2      apr/dso/os2/dso.c
  
  Index: dso.c
  ===================================================================
  RCS file: /home/cvs/apr/dso/os2/dso.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- dso.c	2000/11/22 11:29:18	1.15
  +++ dso.c	2000/12/23 03:07:10	1.16
  @@ -70,11 +70,11 @@
   
   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;