cvs commit: src/sbin/sysctl sysctl.c

看板DFBSD_commit作者時間21年前 (2005/01/18 11:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/8 (看更多)
cpressey 2005/01/17 19:13:52 PST DragonFly src repository Modified files: sbin/sysctl sysctl.c Log: Unlike printf(3), fwrite(3) doesn't stop at the first NUL character it finds in the string; and since the full length of the string was being passed to fwrite(3), sysctl(8) commands were mistakenly outputting a NUL character after their text output. Fix by only fwrite(3)ing the string up to the first NUL character. Discovered-by: y0netan1 Revision Changes Path 1.10 +5 -1 src/sbin/sysctl/sysctl.c http://www.dragonflybsd.org/cvsweb/src/sbin/sysctl/sysctl.c.diff?r1=1.9&r2=1.10&f=u
文章代碼(AID): #11x8Cq00 (DFBSD_commit)
討論串 (同標題文章)
文章代碼(AID): #11x8Cq00 (DFBSD_commit)