httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@hyperreal.org
Subject cvs commit: apachen/src/modules/proxy proxy_util.c
Date Tue, 30 Dec 1997 20:43:55 GMT
marc        97/12/30 12:43:54

  Modified:    src/modules/proxy proxy_util.c
  Log:
  Fix bogus size in ap_snprintf call that I introduced in 1.2b<mumble>.
  Is a bigger problem now because of the ap_snprintf changes to treat
  len of 0 == 0 instead of infinite.
  
  Reviewed by:	Jim Jagielski, Dean Gaudet
  
  Revision  Changes    Path
  1.39      +3 -3      apachen/src/modules/proxy/proxy_util.c
  
  Index: proxy_util.c
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/modules/proxy/proxy_util.c,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- proxy_util.c	1997/12/30 15:10:53	1.38
  +++ proxy_util.c	1997/12/30 20:43:54	1.39
  @@ -338,9 +338,9 @@
       if (mon == 12)
   	return x;
   
  -    if (strlen(x) < 31)
  -	x = palloc(p, 31);
  -    ap_snprintf(x, strlen(x) + 1, "%s, %.2d %s %d %.2d:%.2d:%.2d GMT", wday[wk], mday,
  +    if (strlen(x) < 30)
  +	x = palloc(p, 30);
  +    ap_snprintf(x, 30, "%s, %.2d %s %d %.2d:%.2d:%.2d GMT", wday[wk], mday,
   		months[mon], year, hour, min, sec);
       return x;
   }
  
  
  

Mime
View raw message