From babbaa4a2d5f726dae8ca95dc6cb7a740ffb11e3 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 21 May 2018 17:53:41 -0700 Subject: [PATCH] Update max definition size to 1MB from 10KB Remove dep on math lib Fixes #2 --- CMakeLists.txt | 2 +- book.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;