summaryrefslogtreecommitdiff
path: root/data/aptitude/stringbuf.diff
blob: 3e0d7a0cabe7b3dbd9a55f37647c3f728ae3e8db (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
 	}