cvs: pecl /mailparse mailparse.c

From: Date: Thu, 26 Jun 2003 13:46:15 +0000
Subject: cvs: pecl /mailparse mailparse.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-320@lists.php.net to get a copy of this message
wez Thu Jun 26 09:46:15 2003 EDT Modified files: /pecl/mailparse mailparse.c Log: Fix bug in uudecoder. # hopefully CVS works... Index: pecl/mailparse/mailparse.c diff -u pecl/mailparse/mailparse.c:1.39 pecl/mailparse/mailparse.c:1.40 --- pecl/mailparse/mailparse.c:1.39 Thu Jun 19 14:46:29 2003 +++ pecl/mailparse/mailparse.c Thu Jun 26 09:46:15 2003 @@ -15,7 +15,7 @@ | Author: Wez Furlong <wez@thebrainroom.com> | +----------------------------------------------------------------------+ */ -/* $Id: mailparse.c,v 1.39 2003/06/19 18:46:29 wez Exp $ */ +/* $Id: mailparse.c,v 1.40 2003/06/26 13:46:15 wez Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -655,7 +655,7 @@ { php_info_print_table_start(); php_info_print_table_header(2, "mailparse support", "enabled"); - php_info_print_table_row(2, "Revision", "$Revision: 1.39 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.40 $"); php_info_print_table_end(); DISPLAY_INI_ENTRIES(); @@ -674,13 +674,12 @@ } #define UUDEC(c) (char)(((c)-' ')&077) -#define UU_NEXT(v) if (line[x] == '\0' || isspace(line[x])) break; v = line[x++]; v = UUDEC(v) +#define UU_NEXT(v) if (line[x] == '\0' || line[x] == '\r' || line[x] == '\n') break; v = line[x++]; v = UUDEC(v) static size_t mailparse_do_uudecode(php_stream *instream, php_stream *outstream TSRMLS_DC) { int x, A, B, C, D, n; size_t file_size = 0; - char line[80]; - + unsigned char line[128]; if (outstream) { /* write to outstream */

« previous php.pecl.cvs (#320) next »