diff options
Diffstat (limited to 'console-tools/loadfont.c')
-rw-r--r-- | console-tools/loadfont.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index 032506d6d..58073e0dc 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c | |||
@@ -319,8 +319,10 @@ int loadfont_main(int argc UNUSED_PARAM, char **argv) | |||
319 | * We used to look at the length of the input file | 319 | * We used to look at the length of the input file |
320 | * with stat(); now that we accept compressed files, | 320 | * with stat(); now that we accept compressed files, |
321 | * just read the entire file. | 321 | * just read the entire file. |
322 | * Len was 32k, but latarcyrheb-sun32.psfu is 34377 bytes | ||
323 | * (it has largish Unicode map). | ||
322 | */ | 324 | */ |
323 | len = 32*1024; // can't be larger | 325 | len = 128*1024; |
324 | buffer = xmalloc_read(STDIN_FILENO, &len); | 326 | buffer = xmalloc_read(STDIN_FILENO, &len); |
325 | // xmalloc_open_zipped_read_close(filename, &len); | 327 | // xmalloc_open_zipped_read_close(filename, &len); |
326 | if (!buffer) | 328 | if (!buffer) |
@@ -405,7 +407,7 @@ int setfont_main(int argc UNUSED_PARAM, char **argv) | |||
405 | } | 407 | } |
406 | } | 408 | } |
407 | // load font | 409 | // load font |
408 | len = 32*1024; // can't be larger | 410 | len = 128*1024; |
409 | buffer = xmalloc_open_zipped_read_close(*argv, &len); | 411 | buffer = xmalloc_open_zipped_read_close(*argv, &len); |
410 | if (!buffer) | 412 | if (!buffer) |
411 | bb_simple_perror_msg_and_die(*argv); | 413 | bb_simple_perror_msg_and_die(*argv); |