httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgau...@hyperreal.org
Subject cvs commit: apachen/src/main util.c
Date Tue, 20 Jan 1998 01:48:48 GMT
dgaudet     98/01/19 17:48:48

  Modified:    src/main util.c
  Log:
  Ensure that the buffer returned by ht_time is always properly null
  terminated.
  
  Submitted by:	Marc Slemko
  Reviewed by:    Martin Kraemer, Mark J Cox, Dean Gaudet, Randy Terbush
  
  Revision  Changes    Path
  1.88      +1 -0      apachen/src/main/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/main/util.c,v
  retrieving revision 1.87
  retrieving revision 1.88
  diff -u -r1.87 -r1.88
  --- util.c	1998/01/20 01:42:23	1.87
  +++ util.c	1998/01/20 01:48:47	1.88
  @@ -100,6 +100,7 @@
   
       /* check return code? */
       strftime(ts, MAX_STRING_LEN, fmt, tms);
  +    ts[MAX_STRING_LEN - 1] = '\0';
       return pstrdup(p, ts);
   }
   
  
  
  

Mime
View raw message