diff src/dccifd.cpp @ 227:3fee608becbc stable-6-0-21

Fixes to compile on old systems without memrchr or string::clear(). Fix bug in spamassassin interface trying to clear a string with string::empty().
author Carl Byington <carl@five-ten-sg.com>
date Sat, 03 Jan 2009 15:16:47 -0800
parents 82886d4dd71f
children df7dc6b2b153
line wrap: on
line diff
--- a/src/dccifd.cpp	Sat Jan 03 10:07:10 2009 -0800
+++ b/src/dccifd.cpp	Sat Jan 03 15:16:47 2009 -0800
@@ -107,7 +107,7 @@
 	if (dccifd_socket == NULL_SOCKET) Connect();
 	if ((dccifd_socket != NULL_SOCKET) && (!dccifd_input.empty())) {
 		output(dccifd_input);
-		dccifd_input.clear();
+		dccifd_input = "";
 	}
 
 	if (first_header) {
@@ -194,8 +194,8 @@
 			i = j+1;
 		}
 	}
-	char buff[maxlen];
-	snprintf(buff, sizeof(buff), "dccifd found grey %s bulk %d", ((grey) ? "yes" : "no"), bulk);
+	//char buff[maxlen];
+	//snprintf(buff, sizeof(buff), "dccifd found grey %s bulk %d", ((grey) ? "yes" : "no"), bulk);
 	//my_syslog(priv, buff);
 }