diff options
author | Dima Panov <fluffy@FreeBSD.org> | 2022-05-22 21:54:38 +0300 |
---|---|---|
committer | Dima Panov <fluffy@FreeBSD.org> | 2022-05-22 23:17:05 +0300 |
commit | fa795d332e26221d789bcc48522b7e13a7ecca4d (patch) | |
tree | 841524b191faaf8f5a1d6b83d95d9003d76481da /editors/pdfedit | |
parent | d4f3d96260e2fbe3fe2e4e98e6b498776f946811 (diff) | |
download | freebsd-ports-fa795d332e26221d789bcc48522b7e13a7ecca4d.zip |
editors/pdfedit: unreak build after boost upgrade
PR: 246106
Diffstat (limited to 'editors/pdfedit')
-rw-r--r-- | editors/pdfedit/Makefile | 2 | ||||
-rw-r--r-- | editors/pdfedit/files/patch-src-kernel-stateupdater.cc | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/editors/pdfedit/Makefile b/editors/pdfedit/Makefile index d3c3b51ca990..6d17a49e6f47 100644 --- a/editors/pdfedit/Makefile +++ b/editors/pdfedit/Makefile @@ -2,7 +2,7 @@ PORTNAME= pdfedit PORTVERSION= 0.4.5 -PORTREVISION= 15 +PORTREVISION= 16 CATEGORIES= editors MASTER_SITES= SF diff --git a/editors/pdfedit/files/patch-src-kernel-stateupdater.cc b/editors/pdfedit/files/patch-src-kernel-stateupdater.cc index ffeb6bd5ca73..4c5547b00339 100644 --- a/editors/pdfedit/files/patch-src-kernel-stateupdater.cc +++ b/editors/pdfedit/files/patch-src-kernel-stateupdater.cc @@ -1,6 +1,15 @@ --- src/kernel/stateupdater.cc.orig 2009-09-11 12:02:56 UTC +++ src/kernel/stateupdater.cc -@@ -1227,7 +1227,7 @@ bool checkAndFixOperator (const StateUpd +@@ -1207,7 +1207,7 @@ bool checkAndFixOperator (const StateUpdater::CheckTyp + PdfOperator::Operands::reverse_iterator rit = operands.rbegin (); + // Be careful -- buffer overflow + argNum = std::min (argNum, operands.size()); +- advance (rit, argNum); ++ boost::advance (rit, argNum); + PdfOperator::Operands::iterator it = rit.base (); + // Loop from the first operator to the end + for (int pos = 0; it != operands.end (); ++it, ++pos) +@@ -1227,7 +1227,7 @@ bool checkAndFixOperator (const StateUpdater::CheckTyp { // Convert it to real double dval = 0.0; dval = IProperty::getSmartCObjectPtr<CInt>(*it)->getValue(); |