You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by si...@apache.org on 2005/11/27 20:10:29 UTC
svn commit: r349278 - /spamassassin/branches/3.1/spamc/libspamc.c
Author: sidney
Date: Sun Nov 27 11:10:25 2005
New Revision: 349278
URL: http://svn.apache.org/viewcvs?rev=349278&view=rev
Log:
bug 4708: properly parse bad spamd token, check in to 3.1 branch
Modified:
spamassassin/branches/3.1/spamc/libspamc.c
Modified: spamassassin/branches/3.1/spamc/libspamc.c
URL: http://svn.apache.org/viewcvs/spamassassin/branches/3.1/spamc/libspamc.c?rev=349278&r1=349277&r2=349278&view=diff
==============================================================================
--- spamassassin/branches/3.1/spamc/libspamc.c (original)
+++ spamassassin/branches/3.1/spamc/libspamc.c Sun Nov 27 11:10:25 2005
@@ -852,7 +852,7 @@
}
return EX_OK;
}
- else if (sscanf(buf, "DidSet: %s", didset_ret) == 1) {
+ else if (sscanf(buf, "DidSet: %14s", didset_ret) == 1) {
if (strstr(didset_ret, "local")) {
*didtellflags |= SPAMC_SET_LOCAL;
}
@@ -860,7 +860,7 @@
*didtellflags |= SPAMC_SET_REMOTE;
}
}
- else if (sscanf(buf, "DidRemove: %s", didremove_ret) == 1) {
+ else if (sscanf(buf, "DidRemove: %14s", didremove_ret) == 1) {
if (strstr(didremove_ret, "local")) {
*didtellflags |= SPAMC_REMOVE_LOCAL;
}