看板 DFBSD_commit 關於我們 聯絡資訊
On Sat, Jan 22, 2005 at 11:06:48PM +0900, YONETANI Tomokazu wrote: > On Sat, Jan 22, 2005 at 02:50:28PM +0100, Joerg Sonnenberger wrote: > > On Mon, Jan 17, 2005 at 07:13:52PM -0800, Chris Pressey wrote: > > > Fix by only fwrite(3)ing the string up to the first NUL character. > > Could you replace the inline code with memchr? > > I still don't understand what was wrong with using printf("%.*s"). %.*s expects an integer length, but sysctl can return a size_t, which is longer on most (all) 64bit platforms? Joerg