summaryrefslogtreecommitdiff
path: root/textproc/yodl/files/patch-src_verbinsert_main.cc
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2018-07-24 13:24:09 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2018-07-24 13:24:09 +0000
commit4e49856d1958ba652c012026682630876d435cdd (patch)
tree7debcef62878c7af116368d3ca0d949b09da2c63 /textproc/yodl/files/patch-src_verbinsert_main.cc
parentOriginal distfile from 25 April 2016 was rerolled on 19 June 2016 for some (diff)
textproc/yodl: Fix patches
Notes
Notes: svn path=/head/; revision=475251
Diffstat (limited to 'textproc/yodl/files/patch-src_verbinsert_main.cc')
-rw-r--r--textproc/yodl/files/patch-src_verbinsert_main.cc34
1 files changed, 34 insertions, 0 deletions
diff --git a/textproc/yodl/files/patch-src_verbinsert_main.cc b/textproc/yodl/files/patch-src_verbinsert_main.cc
new file mode 100644
index 000000000000..04a5ac5d87e2
--- /dev/null
+++ b/textproc/yodl/files/patch-src_verbinsert_main.cc
@@ -0,0 +1,34 @@
+--- src/verbinsert/main.cc.orig 2018-07-22 13:07:15 UTC
++++ src/verbinsert/main.cc
+@@ -2,6 +2,7 @@
+ #include <fstream>
+ #include <iomanip>
+ #include <string>
++#include <cstdlib>
+ #include <unistd.h>
+ #include <regex>
+
+@@ -43,19 +44,19 @@ int main(int argc, char **argv)
+ continue;
+
+ case 's':
+- indent.append(stoul(optarg), ' ');
++ indent.append(stoul(optarg, NULL, 0), ' ');
+ continue;
+
+ case 't':
+- indent.insert(0, stoul(optarg), '\t');
++ indent.insert(0, stoul(optarg, NULL, 0), '\t');
+ continue;
+
+ case 'S':
+- vindent.append(stoul(optarg), ' ');
++ vindent.append(stoul(optarg, NULL, 0), ' ');
+ continue;
+
+ case 'T':
+- vindent.insert(0, stoul(optarg), '\t');
++ vindent.insert(0, stoul(optarg, NULL, 0), '\t');
+ continue;
+
+ case 'N':