Date: Sun, 3 Jul 2011 20:59:57 +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: <201107032100.p63L0dPD094288@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2011-07-03 20:59:57 UTC FreeBSD src repository Modified files: usr.sbin/config main.c Log: SVN rev 223744 on 2011-07-03 20:59:57Z by ed 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) MFC after: 3 weeks Revision Changes Path 1.87 +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?201107032100.p63L0dPD094288>