diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-04-11 10:54:12 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2017-04-11 10:57:35 +0800 |
commit | 06a012a42c9884e3cd653e7826cff1ddec04eb6e (patch) | |
tree | bd39f26b67469ce95ba5e6bc816d28f6fcb2f0f9 | |
parent | 34e18d127a02146e3415b33c4b67389ce1ddb614 (diff) | |
download | mupdf-06a012a42c9884e3cd653e7826cff1ddec04eb6e.tar.xz |
Bug 697551: Make path and line buffers of equal size.
Previously a too long line could be copied into the too short path buffer.
-rw-r--r-- | platform/x11/jstest_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/jstest_main.c b/platform/x11/jstest_main.c index 13c3a0a3..f158d962 100644 --- a/platform/x11/jstest_main.c +++ b/platform/x11/jstest_main.c @@ -346,7 +346,7 @@ main(int argc, char *argv[]) } else if (match(&line, "OPEN")) { - char path[1024]; + char path[LONGLINE]; if (file_open) pdfapp_close(&gapp); if (prefix) |