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/ _______________________________________________ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox