diff options
author | Tobias Scherbaum <dertobi123@gentoo.org> | 2009-10-17 17:37:59 +0000 |
---|---|---|
committer | Tobias Scherbaum <dertobi123@gentoo.org> | 2009-10-17 17:37:59 +0000 |
commit | 284936eafb179d114f3e2c274e3a05c996b4fb9e (patch) | |
tree | 34f1d813b2ee905a0ed4be3ab1047a3d8524ccd3 /mail-mta/ssmtp/files | |
parent | Fix typo on src_configure. Bug #258405 (diff) | |
download | gentoo-2-284936eafb179d114f3e2c274e3a05c996b4fb9e.tar.gz gentoo-2-284936eafb179d114f3e2c274e3a05c996b4fb9e.tar.bz2 gentoo-2-284936eafb179d114f3e2c274e3a05c996b4fb9e.zip |
Cleanup, fix from Header when no gecos is available (#282907)
(Portage version: 2.2_rc46/cvs/Linux x86_64)
Diffstat (limited to 'mail-mta/ssmtp/files')
-rw-r--r-- | mail-mta/ssmtp/files/ssmtp-2.62-from_format_fix.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mail-mta/ssmtp/files/ssmtp-2.62-from_format_fix.patch b/mail-mta/ssmtp/files/ssmtp-2.62-from_format_fix.patch new file mode 100644 index 000000000000..119cea2c29f8 --- /dev/null +++ b/mail-mta/ssmtp/files/ssmtp-2.62-from_format_fix.patch @@ -0,0 +1,22 @@ +--- ssmtp.c.old 2009-09-11 11:51:01.000000000 +0200 ++++ ssmtp.c 2009-09-11 11:52:10.000000000 +0200 +@@ -455,7 +455,7 @@ + */ + char *from_format(char *str, bool_t override_from) + { +- char buf[(BUF_SZ + 1)]; ++ char buf[(BUF_SZ + 1)] = ""; + + if(override_from) { + if(minus_f) { +@@ -484,6 +484,10 @@ + if(snprintf(buf, BUF_SZ, "\"%s\" <%s>", gecos, str) == -1) { + die("from_format() -- snprintf() failed"); + } ++ } else { ++ if(snprintf(buf, BUF_SZ, "%s", str) == -1) { ++ die("from_format() -- snprintf() failed"); ++ } + } + } + |