Kaydet (Commit) 7ae4b322 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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
üst 4712b830
--- dist.c --- dist.c
+++ dist.c +++ dist.c
@@ -405,7 +405,11 @@ @@ -405,7 +405,12 @@
for (temp = platform->machine; *temp != '\0'; temp ++) for (temp = platform->machine; *temp != '\0'; temp ++)
if (*temp == '-' || *temp == '_') if (*temp == '-' || *temp == '_')
{ {
- strcpy(temp, temp + 1); - strcpy(temp, temp + 1);
+ for (char * t2 = temp;; ++t2) { + char * t2 = temp;
+ for (;; ++t2) {
+ char c = t2[1]; + char c = t2[1];
+ t2[0] = c; + t2[0] = c;
+ if (c == '\0') break; + if (c == '\0') break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment