summaryrefslogtreecommitdiff
path: root/data/aptitude/stringbuf.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/aptitude/stringbuf.diff')
-rw-r--r--data/aptitude/stringbuf.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/data/aptitude/stringbuf.diff b/data/aptitude/stringbuf.diff
new file mode 100644
index 000000000..3e0d7a0ca
--- /dev/null
+++ b/data/aptitude/stringbuf.diff
@@ -0,0 +1,12 @@
+diff -ur aptitude-0.8.10/src/generic/util/util.cc aptitude-0.8.10+iPhone/src/generic/util/util.cc
+--- aptitude-0.8.10/src/generic/util/util.cc 2017-08-19 07:59:07.000000000 -1000
++++ aptitude-0.8.10+iPhone/src/generic/util/util.cc 2018-08-31 09:24:23.000000000 -1000
+@@ -242,7 +242,7 @@
+ // We need to copy "result", not "buf", because some
+ // versions of strerror_r can return a static string and
+ // leave "buf" alone.
+- string rval(result);
++ string rval(buf);
+ delete[] buf;
+ return rval;
+ }