Browse code

Handle spaces at the end of uuencoded lines

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@340 77e5149b-7576-45b1-b177-96237e5ba77b

Nigel Horne authored on 2004/02/26 22:27:48
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Thu Feb 26 13:33:00 GMT 2004 (njh)
2
+----------------------------------
3
+  * libclamav:	Handle spaces at the end of uuencoded lines
4
+
1 5
 Thu Feb 26 11:02:46 GMT 2004 (trog)
2 6
 -----------------------------------
3 7
  * libclamav/readdb.c: close directory descriptor leak - caused
... ...
@@ -14,8 +14,15 @@
14 14
  *  You should have received a copy of the GNU General Public License
15 15
  *  along with this program; if not, write to the Free Software
16 16
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
+ *
18
+ * $Log: text.c,v $
19
+ * Revision 1.4  2004/02/26 13:26:34  nigelhorne
20
+ * Handle spaces at the end of uuencoded lines
21
+ *
17 22
  */
18 23
 
24
+static	char	const	rcsid[] = "$Id: text.c,v 1.4 2004/02/26 13:26:34 nigelhorne Exp $";
25
+
19 26
 #if HAVE_CONFIG_H
20 27
 #include "clamav-config.h"
21 28
 #endif
... ...
@@ -66,8 +73,12 @@ textClean(text *t_head)
66 66
 		if(len > 0) {
67 67
 			int last = len;
68 68
 
69
-			while((--last >= 0) && isspace(line[last]))
70
-				;
69
+			/*
70
+			 * Don't remove trailing spaces since that
71
+			 * may break uuencoded files
72
+			 */
73
+			/*while((--last >= 0) && isspace(line[last]))
74
+				;*/
71 75
 
72 76
 			if(++last > 0) {
73 77
 				t_lastnonempty = t_head;