apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/dso/win32 dso.c
Date Sat, 27 Jan 2001 06:39:14 GMT
wrowe       01/01/26 22:39:14

  Modified:    dso/win32 dso.c
  Log:
    And why these values, anyways... abstract them out
  
  Revision  Changes    Path
  1.19      +3 -3      apr/dso/win32/dso.c
  
  Index: dso.c
  ===================================================================
  RCS file: /home/cvs/apr/dso/win32/dso.c,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- dso.c	2001/01/20 21:39:02	1.18
  +++ dso.c	2001/01/27 06:39:14	1.19
  @@ -81,7 +81,7 @@
       apr_oslevel_e os_level;
       if (!apr_get_oslevel(ctx, &os_level) && os_level >= APR_WIN_NT) 
       {
  -        apr_wchar_t wpath[8192];
  +        apr_wchar_t wpath[APR_PATH_MAX];
           apr_status_t rv;
           if (rv = utf8_to_unicode_path(wpath, sizeof(wpath) 
                                                 / sizeof(apr_wchar_t), path)) {
  @@ -97,14 +97,14 @@
       else
   #endif
       {
  -        char fspec[MAX_PATH], *p = fspec;
  +        char fspec[APR_PATH_MAX], *p = fspec;
           /* Must convert path from / to \ notation.
            * Per PR2555, the LoadLibraryEx function is very picky about slashes.
            * Debugging on NT 4 SP 6a reveals First Chance Exception within NTDLL.
            * LoadLibrary in the MS PSDK also reveals that it -explicitly- states
            * that backslashes must be used for the LoadLibrary family of calls.
            */
  -        apr_cpystrn(fspec, path, MAX_PATH);
  +        apr_cpystrn(fspec, path, sizeof(fspec));
           while (p = strchr(p, '/'))
               *p = '\\';
           
  
  
  

Mime
View raw message