openbsd-ports/mail/sylpheed-claws/patches/patch-src_plugins_spamassassin_libspamc_c

24 lines
1.0 KiB
Plaintext

$OpenBSD: patch-src_plugins_spamassassin_libspamc_c,v 1.1 2003/08/31 02:32:03 avsm Exp $
--- src/plugins/spamassassin/libspamc.c.orig 2003-08-28 13:01:07.000000000 -0400
+++ src/plugins/spamassassin/libspamc.c 2003-08-28 13:04:07.000000000 -0400
@@ -595,7 +595,7 @@ static int
_handle_spamd_header (struct message *m, int flags, char *buf, int len)
{
char is_spam[6];
- char s_str[20], t_str[20];
+ char s_str[21], t_str[21];
/* Feb 12 2003 jm: actually, I think sccanf is working fine here ;)
* let's stick with it for this parser.
@@ -604,8 +604,8 @@ _handle_spamd_header (struct message *m,
*/
if (sscanf(buf, "Spam: %5s ; %20s / %20s", is_spam, s_str, t_str) == 3)
{
- m->score = _locale_safe_string_to_float (s_str, 20);
- m->threshold = _locale_safe_string_to_float (t_str, 20);
+ m->score = _locale_safe_string_to_float (s_str, 21);
+ m->threshold = _locale_safe_string_to_float (t_str, 21);
/* Format is "Spam: x; y / x" */
m->is_spam=strcasecmp("true", is_spam) == 0 ? EX_ISSPAM: EX_NOTSPAM;