termux-packages/packages/iproute2/strdupa.patch
2021-12-05 14:24:28 +01:00

25 lines
547 B
Diff

--- iproute2-5.15.0/ip/iplink_bond.c.orig
+++ iproute2-5.15.0/ip/iplink_bond.c
@@ -171,6 +171,9 @@
print_explain(stderr);
}
+#undef strdupa
+#define strdupa(s) strcpy(alloca(strlen(s) + 1), s)
+
static int bond_parse_opt(struct link_util *lu, int argc, char **argv,
struct nlmsghdr *n)
{
--- iproute2-5.15.0/lib/color.c.orig
+++ iproute2-5.15.0/lib/color.c
@@ -93,6 +93,9 @@
return false;
}
+#undef strdupa
+#define strdupa(s) strcpy(alloca(strlen(s) + 1), s)
+
bool matches_color(const char *arg, int *val)
{
char *dup, *p;