httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@hyperreal.com>
Subject cvs commit: apache/src util_script.c
Date Tue, 29 Apr 1997 04:45:54 GMT
dgaudet     97/04/28 21:45:53

  Modified:    src       util_script.c
  Log:
  Fix an off-by-1 error.
  
  Revision  Changes    Path
  1.56      +3 -3      apache/src/util_script.c
  
  Index: util_script.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/util_script.c,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -C3 -r1.55 -r1.56
  *** util_script.c	1997/04/29 03:41:13	1.55
  --- util_script.c	1997/04/29 04:45:52	1.56
  ***************
  *** 93,102 ****
        for (x = 0, numwords = 1; args[x]; x++)
            if (args[x] == '+') ++numwords;
    
  !     if (numwords > APACHE_ARG_MAX - 4) {
  !         numwords = APACHE_ARG_MAX - 4; /* Truncate args to prevent overrun */
        }
  !     av = (char **)palloc(p, (numwords + 4) * sizeof(char *));
    
        if (path)
            av[idx++] = path;
  --- 93,102 ----
        for (x = 0, numwords = 1; args[x]; x++)
            if (args[x] == '+') ++numwords;
    
  !     if (numwords > APACHE_ARG_MAX - 5) {
  !         numwords = APACHE_ARG_MAX - 5; /* Truncate args to prevent overrun */
        }
  !     av = (char **)palloc(p, (numwords + 5) * sizeof(char *));
    
        if (path)
            av[idx++] = path;
  
  
  

Mime
View raw message