diff options
-rw-r--r-- | debian/changelog | 1 | ||||
-rw-r--r-- | debian/sensible_mda/sensible-mda.c.in | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog index 8286f5f..fcf47bb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,7 @@ sendmail (8.14.4-4.1) UNRELEASED; urgency=low (Closes: #692047) * Raise MAXDAEMONS from 10 to 64, thanks to Kees Cook. (Closes: #720435) * Enable all hardening flags, thanks to Simon Ruderich. (Closes: #687708) + * Fix FTBFS on HURD, thanks to Samuel Thibault. (Closes: #608525) -- Andreas Beckmann <anbe@debian.org> Fri, 13 Sep 2013 05:46:00 +0200 diff --git a/debian/sensible_mda/sensible-mda.c.in b/debian/sensible_mda/sensible-mda.c.in index d23d243..1906eed 100644 --- a/debian/sensible_mda/sensible-mda.c.in +++ b/debian/sensible_mda/sensible-mda.c.in @@ -59,7 +59,7 @@ static const char id[] = "@(#)$Id: sensible-mda.c,v @sm_version@ @sm_date@ @sm_t static void help(void); static int drop_privs(char *, uid_t, gid_t); static void show_privs(void); -static unsigned char program[PATH_MAX]; +static unsigned char *program; static uid_t RealUid, RunAsUid; static gid_t RealGid, RunAsGid; @@ -89,9 +89,7 @@ main (int argc, char *argv[]) { str_pos++; else str_pos = argv[0]; - (void) strncpy(program, str_pos, - min(strlen(str_pos), sizeof(program)-1)); - program[sizeof(program)-1] = '\0'; + program = strdup(str_pos); #if DEBUG str_len = 0; |