Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jul 2011 19:13:54 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/usr.sbin/config main.c
Message-ID:  <201107241914.p6OJEDmY074295@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

ed          2011-07-24 19:13:54 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    usr.sbin/config      main.c 
  Log:
  SVN rev 224295 on 2011-07-24 19:13:54Z by ed
  
  MFC r223744:
  
    Improve portability of config(8).
  
    - Use strlen(dp->d_name) instead of the unportable dp->d_namlen. Rename
      i to len to make it slightly more descriptive and prevent negative
      indexing of the array.
    - Replace index() by strchr().
  
    This supposedly fixes compilation on GNU systems.
  
  Submitted by:   Robert Millan <rmh debian org> (original patch)
  
  Revision  Changes    Path
  1.81.2.6  +5 -4      src/usr.sbin/config/main.c



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