Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Apr 2005 10:57:54 +0000 (UTC)
From:      Stefan Farfeleder <stefanf@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/printf printf.c
Message-ID:  <200504111057.j3BAvst1077182@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
stefanf     2005-04-11 10:57:54 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/printf       printf.c 
  Log:
  Replace buggy for-loops to skip certain character with strspn().  If *fmt was
  '\0' (eg in the invocation 'printf %'), the for-loop would miss the terminating
  null character.
  
  MFC after:      1 week
  
  Revision  Changes    Path
  1.31      +3 -3      src/usr.bin/printf/printf.c



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