slackware-current/source/xap/gv/gv-bounding-box.patch
Patrick J Volkerding 4fc798c4ca Thu Dec 5 19:04:24 UTC 2019
a/tcsh-6.22.02-x86_64-1.txz:  Upgraded.
ap/vim-8.1.2391-x86_64-1.txz:  Upgraded.
l/fuse3-3.8.0-x86_64-2.txz:  Rebuilt.
  rc.fuse3: Don't source /lib/lsb/init-functions unless it exists.
  NOTE: FUSE seems to work fine without starting rc.fuse3, which it why it
  isn't actually called from anywhere during system startup.
n/iw-5.4-x86_64-1.txz:  Upgraded.
n/php-7.4.0-x86_64-2.txz:  Rebuilt.
  Rebuilt using --enable-gd=shared and --with-zip=shared.
  Thanks to Matteo Bernardini.
xap/gv-3.7.4-x86_64-3.txz:  Rebuilt.
  Patched to fix save/print features when used with the latest ghostscript.
  Added --enable-international build option.
  Fixed broken whitespace in the bounding-box patch.
  Thanks to Xsane.
xap/vim-gvim-8.1.2391-x86_64-1.txz:  Upgraded.
2019-12-06 08:59:49 +01:00

13 lines
420 B
Diff

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;
}