termux-packages/packages/iproute2/strdupa.patch

25 lines
547 B
Diff
Raw Normal View History

2021-11-21 16:54:57 +01:00
--- 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;