Handle spaces at the end of uuencoded lines

git-svn: trunk@340
remotes/push_mirror/metadata
Nigel Horne 22 years ago
parent e3f0de57a1
commit d21556c865
  1. 4
      clamav-devel/ChangeLog
  2. 15
      clamav-devel/libclamav/text.c

@ -1,3 +1,7 @@
Thu Feb 26 13:33:00 GMT 2004 (njh)
----------------------------------
* libclamav: Handle spaces at the end of uuencoded lines
Thu Feb 26 11:02:46 GMT 2004 (trog)
-----------------------------------
* libclamav/readdb.c: close directory descriptor leak - caused

@ -14,8 +14,15 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: text.c,v $
* Revision 1.4 2004/02/26 13:26:34 nigelhorne
* Handle spaces at the end of uuencoded lines
*
*/
static char const rcsid[] = "$Id: text.c,v 1.4 2004/02/26 13:26:34 nigelhorne Exp $";
#if HAVE_CONFIG_H
#include "clamav-config.h"
#endif
@ -66,8 +73,12 @@ textClean(text *t_head)
if(len > 0) {
int last = len;
while((--last >= 0) && isspace(line[last]))
;
/*
* Don't remove trailing spaces since that
* may break uuencoded files
*/
/*while((--last >= 0) && isspace(line[last]))
;*/
if(++last > 0) {
t_lastnonempty = t_head;

Loading…
Cancel
Save