httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@locus.apache.org
Subject cvs commit: apache-1.3/src/os/win32 util_win32.c
Date Tue, 14 Nov 2000 00:25:18 GMT
wrowe       00/11/13 16:25:17

  Modified:    src/os/win32 util_win32.c
  Log:
    Eliminate an uninitialized variable from a buffer len.
  
  PR: 6838
  Submitted by:	Kelly Campbell <camk@channelpoint.com>
  Reviewed by:	William Rowe
  
  Revision  Changes    Path
  1.41      +1 -1      apache-1.3/src/os/win32/util_win32.c
  
  Index: util_win32.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/os/win32/util_win32.c,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- util_win32.c	2000/10/08 05:23:14	1.40
  +++ util_win32.c	2000/11/14 00:25:17	1.41
  @@ -743,7 +743,7 @@
        */
       
       nErrorCode = GetLastError();
  -    len = ap_snprintf(errstr, sizeof(errstr) - len, "(%d) ", nErrorCode);
  +    len = ap_snprintf(errstr, sizeof(errstr), "(%d) ", nErrorCode);
   
       len += FormatMessage( 
               FORMAT_MESSAGE_FROM_SYSTEM,
  
  
  

Mime
View raw message