summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-10-25 08:20:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-10-25 08:25:17 +0200
commit7ae4b32225010a049197f17e022e0a5c725e191b (patch)
tree5961a05cfbbe611249b0cb9e9c8d3a6dd9ab632d /external
parent4712b830f82a1de6ce3d7dddbe80a0f83947b968 (diff)
Adapt external/epm/asan.patch.0 to pre-C99
...as e.g. still used in <https://ci.libreoffice.org/job/lo_daily_update_gandalf/511/> Change-Id: I11d85ff9ae7462a4149272344e0b0f52eb120c22
Diffstat (limited to 'external')
-rw-r--r--external/epm/asan.patch.05
1 files changed, 3 insertions, 2 deletions
diff --git a/external/epm/asan.patch.0 b/external/epm/asan.patch.0
index e3991eb1c569..b17ac26be171 100644
--- a/external/epm/asan.patch.0
+++ b/external/epm/asan.patch.0
@@ -1,11 +1,12 @@
--- dist.c
+++ dist.c
-@@ -405,7 +405,11 @@
+@@ -405,7 +405,12 @@
for (temp = platform->machine; *temp != '\0'; temp ++)
if (*temp == '-' || *temp == '_')
{
- strcpy(temp, temp + 1);
-+ for (char * t2 = temp;; ++t2) {
++ char * t2 = temp;
++ for (;; ++t2) {
+ char c = t2[1];
+ t2[0] = c;
+ if (c == '\0') break;