summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-04-11 10:54:12 +0800
committerSebastian Rasmussen <sebras@gmail.com>2017-04-11 10:57:35 +0800
commit06a012a42c9884e3cd653e7826cff1ddec04eb6e (patch)
treebd39f26b67469ce95ba5e6bc816d28f6fcb2f0f9 /platform/x11
parent34e18d127a02146e3415b33c4b67389ce1ddb614 (diff)
downloadmupdf-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.
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/jstest_main.c2
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)