看板 DFBSD_submit 關於我們 聯絡資訊
I'll re-examine sysctl after Chris' commit. > There should be at least a check for the value of len, to ensure that > it actually fits into an int. Roger that. [snip] > Dont do this, please. Use a new variable or reuse sep, this are constant > strings and should stay so. Sorry; I got into my head that val was being passed to some destructive function. Obviously I was dreaming. [snip] > Change oidfmt and sysctl_all to take the lenght as size_t instead. Will do. My misstake was assuming sysctl_all accepted an int for a reason, instead of checking if it made sense to just go ahead and change it. -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@infidyne.com>' Key retrieval: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org