diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-21 18:38:51 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-21 18:38:51 +0200 |
commit | 9de2e5a22213842da5b116723392de88de9ed419 (patch) | |
tree | dff999a566382174e084d377dc3b4c03de1d4c62 /miscutils/fbsplash.c | |
parent | 47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5 (diff) | |
download | busybox-w32-9de2e5a22213842da5b116723392de88de9ed419.tar.gz busybox-w32-9de2e5a22213842da5b116723392de88de9ed419.tar.bz2 busybox-w32-9de2e5a22213842da5b116723392de88de9ed419.zip |
*: hopefully all setup_common_bufsiz() are in place
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/fbsplash.c')
-rw-r--r-- | miscutils/fbsplash.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/miscutils/fbsplash.c b/miscutils/fbsplash.c index b26ad2c15..3ddf8a242 100644 --- a/miscutils/fbsplash.c +++ b/miscutils/fbsplash.c | |||
@@ -373,12 +373,13 @@ static void fb_drawimage(void) | |||
373 | * - A raster of Width * Height pixels in triplets of rgb | 373 | * - A raster of Width * Height pixels in triplets of rgb |
374 | * in pure binary by 1 or 2 bytes. (we support only 1 byte) | 374 | * in pure binary by 1 or 2 bytes. (we support only 1 byte) |
375 | */ | 375 | */ |
376 | #define concat_buf bb_common_bufsiz1 | 376 | #define concat_buf bb_common_bufsiz1 |
377 | #define sizeof_concat_buf COMMON_BUFSIZE | 377 | setup_common_bufsiz(); |
378 | |||
378 | read_ptr = concat_buf; | 379 | read_ptr = concat_buf; |
379 | while (1) { | 380 | while (1) { |
380 | int w, h, max_color_val; | 381 | int w, h, max_color_val; |
381 | int rem = concat_buf + sizeof_concat_buf - read_ptr; | 382 | int rem = concat_buf + COMMON_BUFSIZE - read_ptr; |
382 | if (rem < 2 | 383 | if (rem < 2 |
383 | || fgets(read_ptr, rem, theme_file) == NULL | 384 | || fgets(read_ptr, rem, theme_file) == NULL |
384 | ) { | 385 | ) { |