diff options
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/output-cbz.c | 6 | ||||
-rw-r--r-- | source/fitz/output-svg.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/source/fitz/output-cbz.c b/source/fitz/output-cbz.c index 82c4a6b7..c7ab5805 100644 --- a/source/fitz/output-cbz.c +++ b/source/fitz/output-cbz.c @@ -1,5 +1,9 @@ #include "mupdf/fitz.h" +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + #include <zlib.h> typedef struct fz_cbz_writer_s fz_cbz_writer; @@ -107,7 +111,7 @@ static void pixmap_end_page(fz_context *ctx, fz_document_writer *wri_, fz_device *dev) { fz_pixmap_writer *wri = (fz_pixmap_writer*)wri_; - char path[FZ_PATH_MAX]; + char path[PATH_MAX]; fz_close_device(ctx, dev); fz_drop_device(ctx, dev); diff --git a/source/fitz/output-svg.c b/source/fitz/output-svg.c index a0ea0299..20d57c17 100644 --- a/source/fitz/output-svg.c +++ b/source/fitz/output-svg.c @@ -1,5 +1,9 @@ #include "mupdf/fitz.h" +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + typedef struct fz_svg_writer_s fz_svg_writer; struct fz_svg_writer_s @@ -24,7 +28,7 @@ static fz_device * svg_begin_page(fz_context *ctx, fz_document_writer *wri_, const fz_rect *mediabox) { fz_svg_writer *wri = (fz_svg_writer*)wri_; - char path[FZ_PATH_MAX]; + char path[PATH_MAX]; float w = mediabox->x1 - mediabox->x0; float h = mediabox->y1 - mediabox->y0; |