Hello list, hello William,
for those who want to see S/MIME support back in S-nail but want
to wait with switching to a version >v14.5, here is a patch for
you.
Apply:
$ cd s-nail-14.5.2
$ patch -bu < s-nail-14_5_2-smime.patch
Description:
Fix a very stupid off-by-one error that i've introduced
in [7bdf330] (OpenBSD 5.3: sigh, address strcpy(),strcat()
etc., 2013-06-01).
Until we've changed the used data from string to something
line-wise, use strcat(3) again.
Ciao,
--steffen
s-nail-14_5_2-smime.patch, 2014-02-15 (2014-02-14):
Apply:
$ cd s-nail-14.5.2
$ patch -bu < s-nail-14_5_2-smime.patch
Description:
Fix a very stupid off-by-one error that i've introduced
in [7bdf330] (OpenBSD 5.3: sigh, address strcpy(),strcat()
etc., 2013-06-01).
Until we've changed the used data from string to something
line-wise, use strcat(3) again.
ssl.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ssl.c b/ssl.c
index c840651..a87888e 100644
--- a/ssl.c
+++ b/ssl.c
@@ -160,8 +160,7 @@ jetmp:
for (;;) {
savedsize += buflen;
savedfields = srealloc(savedfields, savedsize);
- memcpy(savedfields + strlen(savedfields),
- buf, strlen(buf));
+ strcat(savedfields, buf);
if (keep)
fwrite(buf, sizeof *buf, buflen, *hp);
c = getc(ip);
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
S-nail-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/s-nail-users