[PATCH] time options for ps
Detlef Vollmann
dv at vollmann.ch
Sun Jan 6 04:58:55 PST 2008
Denys Vlasenko wrote:
> sizeof is wrong here:
>
> +static inline void file_to_buf(char const *filename, char *buf)
> +{
> + if (open_read_close(filename, buf, sizeof(buf)) < 0) {
> + bb_error_msg_and_die(BAD_OPEN_MESSAGE);
> + }
> +}
Oops, mea culpa :-(
This happened when I read the coding guidelines and converted
the macro to an inline function...
Detlef
--
Detlef Vollmann vollmann engineering gmbh
Linux and C++ for Embedded Systems http://www.vollmann.ch/
More information about the busybox
mailing list