apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@locus.apache.org
Subject cvs commit: apr/dso/os2 dso.c
Date Sat, 23 Dec 2000 03:07:10 GMT
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;
  
  
  

Mime
View raw message