apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject cvs commit: apr/strings apr_snprintf.c
Date Fri, 20 Jun 2003 12:56:52 GMT
martin      2003/06/20 05:56:52

  Modified:    strings  apr_snprintf.c
  Log:
  In the case of invalid %p formats, skip the bogus argument too when skipping the false format
item
  
  Revision  Changes    Path
  1.35      +1 -0      apr/strings/apr_snprintf.c
  
  Index: apr_snprintf.c
  ===================================================================
  RCS file: /home/cvs/apr/strings/apr_snprintf.c,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -u -r1.34 -r1.35
  --- apr_snprintf.c	17 Apr 2003 17:31:56 -0000	1.34
  +++ apr_snprintf.c	20 Jun 2003 12:56:52 -0000	1.35
  @@ -1218,6 +1218,7 @@
                       s = "bogus %p";
                       s_len = 8;
                       prefix_char = NUL;
  +                    (void)va_arg(ap, void *); /* skip the bogus argument on the stack */
                       break;
                   }
                   break;
  
  
  

Mime
View raw message