Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jul 2003 00:08:44 -0700 (PDT)
From:      "Jordan K. Hubbard" <jkh@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/stdio vsnprintf.c
Message-ID:  <200307020708.h6278iOC039354@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jkh         2003/07/02 00:08:44 PDT

  FreeBSD src repository

  Modified files:
    lib/libc/stdio       vsnprintf.c 
  Log:
  When size is 1 should just null terminate the string.  The dummy variable
  is made an array of two, to explicitly avoid stack corruption due to
  null-terminating (which is doesn't actually happen due to stack alignment
  padding).
  
  Submitted by: Ed Moy <emoy@apple.com>
  Obtained from: Apple Computer, Inc.
  
  Revision  Changes    Path
  1.22      +5 -3      src/lib/libc/stdio/vsnprintf.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307020708.h6278iOC039354>