blob: b17ac26be171770ede865cd45fedeaa99b864367 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- dist.c
+++ dist.c
@@ -405,7 +405,12 @@
for (temp = platform->machine; *temp != '\0'; temp ++)
if (*temp == '-' || *temp == '_')
{
- strcpy(temp, temp + 1);
+ char * t2 = temp;
+ for (;; ++t2) {
+ char c = t2[1];
+ t2[0] = c;
+ if (c == '\0') break;
+ }
temp --;
}
else
|