*: hopefully all setup_common_bufsiz() are in place
[oweals/busybox.git] / miscutils / fbsplash.c
index b26ad2c1566a6ae789d10afbaebe22bb7af1319b..3ddf8a242767e6f902ae55c33a8f163953b2f1e5 100644 (file)
@@ -373,12 +373,13 @@ static void fb_drawimage(void)
         * - A raster of Width * Height pixels in triplets of rgb
         *   in pure binary by 1 or 2 bytes. (we support only 1 byte)
         */
-#define        concat_buf bb_common_bufsiz1
-#define sizeof_concat_buf COMMON_BUFSIZE
+#define concat_buf bb_common_bufsiz1
+       setup_common_bufsiz();
+
        read_ptr = concat_buf;
        while (1) {
                int w, h, max_color_val;
-               int rem = concat_buf + sizeof_concat_buf - read_ptr;
+               int rem = concat_buf + COMMON_BUFSIZE - read_ptr;
                if (rem < 2
                 || fgets(read_ptr, rem, theme_file) == NULL
                ) {