aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/mk')
-rw-r--r--src/cmd/mk/archive.c4
-rw-r--r--src/cmd/mk/env.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/cmd/mk/archive.c b/src/cmd/mk/archive.c
index 5b0c1d00..6d646979 100644
--- a/src/cmd/mk/archive.c
+++ b/src/cmd/mk/archive.c
@@ -1,5 +1,9 @@
#include "mk.h"
+#if defined(__AIX__)
+#define ARMAG "<bigaf>\n"
+#else
#define ARMAG "!<arch>\n"
+#endif
#define SARMAG (sizeof(ARMAG) - sizeof(""))
#define ARFMAG "`\n"
diff --git a/src/cmd/mk/env.c b/src/cmd/mk/env.c
index d7c6481d..e01aa21a 100644
--- a/src/cmd/mk/env.c
+++ b/src/cmd/mk/env.c
@@ -123,7 +123,8 @@ buildenv(Job *j, int slot)
qp = strchr(cp+1, ')');
if(qp){
*qp = 0;
- strcpy(w->s, cp+1);
+ /* strcpy, but might overlap */
+ memmove(w->s, cp+1, strlen(cp+1)+1);
l = &w->next;
w = w->next;
continue;