cvs: pecl /translit translit.c

From: Date: Tue, 09 Nov 2004 13:18:29 +0000
Subject: cvs: pecl /translit translit.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-1999@lists.php.net to get a copy of this message
derick Tue Nov 9 08:18:29 2004 EDT Modified files: /pecl/translit translit.c Log: - Fix segfaults in the case where no filters where run. http://cvs.php.net/diff.php/pecl/translit/translit.c?r1=1.3&r2=1.4&ty=u Index: pecl/translit/translit.c diff -u pecl/translit/translit.c:1.3 pecl/translit/translit.c:1.4 --- pecl/translit/translit.c:1.3 Sun Oct 24 16:51:54 2004 +++ pecl/translit/translit.c Tue Nov 9 08:18:27 2004 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: translit.c,v 1.3 2004/10/24 20:51:54 derick Exp $ */ +/* $Id: translit.c,v 1.4 2004/11/09 13:18:27 derick Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -117,8 +117,8 @@ } target_hash = HASH_OF(filter_list); zend_hash_internal_pointer_reset_ex(target_hash, &pos); - in = (unsigned short*) string; - inl = str_len/2; + in = out = (unsigned short*) string; + inl = outl = str_len/2; while (zend_hash_get_current_data_ex(target_hash, (void **)&entry, &pos) == SUCCESS) { if (Z_TYPE_PP(entry) == IS_STRING) {

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