[SimBot-commits] CVS: simbot simbot.pl,1.136,1.137
Status: Abandoned
Brought to you by:
kstange
|
From: Kevin S. <ks...@us...> - 2005-08-10 02:28:50
|
Update of /cvsroot/simbot/simbot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5677 Modified Files: simbot.pl Log Message: Initialize to 0 in for loops Index: simbot.pl =================================================================== RCS file: /cvsroot/simbot/simbot/simbot.pl,v retrieving revision 1.136 retrieving revision 1.137 diff -u -d -p -r1.136 -r1.137 --- simbot.pl 9 Aug 2005 01:32:36 -0000 1.136 +++ simbot.pl 9 Aug 2005 01:52:57 -0000 1.137 @@ -588,10 +588,10 @@ sub htmlize { sub html_mask_email { my ($user, $host) = $_[0] =~ m/^(\S+)@(\S+)$/; my ($nuser, $nhost); - for(my $i; $i < length $user; $i++) { + for(my $i = 0; $i < length $user; $i++) { $nuser .= '&#' . ord(substr($user, $i, 1)) . ';'; } - for(my $i; $i < length $host; $i++) { + for(my $i = 0; $i < length $host; $i++) { $nhost .= '&#' . ord(substr($host, $i, 1)) . ';'; } |