summaryrefslogtreecommitdiff
path: root/source/xap/gv/gv-bounding-box.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/gv/gv-bounding-box.patch')
-rw-r--r--source/xap/gv/gv-bounding-box.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/xap/gv/gv-bounding-box.patch b/source/xap/gv/gv-bounding-box.patch
new file mode 100644
index 00000000..4cfcb742
--- /dev/null
+++ b/source/xap/gv/gv-bounding-box.patch
@@ -0,0 +1,13 @@
+diff --git a/gv/src/ps.c b/gv/src/ps.c
+index 2428bcc..822b65a 100644
+--- a/gv/src/ps.c
++++ b/gv/src/ps.c
+@@ -357,7 +357,7 @@ static int parse_boundingbox(const char *l, int *boundingbox) {
+ while (*p == ' ' || *p == '\t')
+ p++;
+ fury = strtod(p, &pe);
+- if (*pe != '\n' && *pe != '\0' && *pe != ' ' && *pe != '\t') {
++ if (*pe != '\n' && *pe != '\r'&& *pe != '\0' && *pe != ' ' && *pe != '\t') {
+ return 0;
+ }
+