gnupg: add patch to fix compilation on device

When running mkdefsinc we get:

  FORTIFY: %n not allowed on Android
  Aborted
This commit is contained in:
Henrik Grimler 2021-09-01 10:58:47 +02:00
parent 32c67fa030
commit df3ab4c7f8
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- ./doc/mkdefsinc.c.orig 2021-09-01 10:39:31.217492425 +0200
+++ ./doc/mkdefsinc.c 2021-09-01 10:41:07.165492356 +0200
@@ -290,8 +290,8 @@
}
n = strlen (opt_date) + strlen (month) + 2 + 1;
p = xmalloc (n);
- snprintf (p, n, "%d %n%s %d",
- atoi (opt_date+8), &monthoff, month, atoi (opt_date));
+ snprintf (p, n, "%d %s %d",
+ atoi (opt_date+8), month, atoi (opt_date));
xfree (opt_date);
opt_date = p;
}