diff --git a/CMakeLists.txt b/CMakeLists.txt index e330429..6202e00 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ project(zero-epwing) include_directories(eb) link_directories(eb/eb/.libs jansson/lib) add_executable(zero-epwing main.c book.c convert.c hooks.c) -target_link_libraries(zero-epwing libm.a libeb.a libm.a libz.a libjansson.a) +target_link_libraries(zero-epwing libeb.a libz.a libjansson.a) if (WIN32 OR APPLE) target_link_libraries(zero-epwing libiconv.a) endif (WIN32 OR APPLE) diff --git a/book.c b/book.c index 9fc559a..239fd06 100644 --- a/book.c +++ b/book.c @@ -101,7 +101,7 @@ static char* book_read(EB_Book* book, EB_Hookset* hookset, const EB_Position* po return NULL; } - char data[10240] = {}; + static char data[1024000] = {}; ssize_t data_length = 0; EB_Error_Code error;