tony2001                Fri Jul 28 12:21:34 2006 UTC

  Modified files:              
    /php-src/ext/standard       string.c 
  Log:
  patch for #37846 (wordwrap() wraps incorrectly) 
  by Dmitry Kononov <ddk at krasn dot ru>
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.555&r2=1.556&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.555 php-src/ext/standard/string.c:1.556
--- php-src/ext/standard/string.c:1.555 Mon Jul 17 20:43:07 2006
+++ php-src/ext/standard/string.c       Fri Jul 28 12:21:34 2006
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: string.c,v 1.555 2006/07/17 20:43:07 mike Exp $ */
+/* $Id: string.c,v 1.556 2006/07/28 12:21:34 tony2001 Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -872,7 +872,7 @@
                                lastspace = current;
                        } else if (current - laststart >= linelength && 
laststart != lastspace) {
                                newtext[lastspace] = breakchar[0];
-                               laststart = lastspace;
+                               laststart = lastspace + 1;
                        }
                }
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to