[PHP-DEV] CVS update: php3/functions From: rasmus (php-dev <email protected>)
Date: 05/31/98

Date: Sunday May 31, 1998 @ 9:24
Author: rasmus

Update of /repository/php3/functions
In directory asf:/tmp/cvs-serv23258/functions

Modified Files:
        string.c
Log Message:
Was looping too far here

Index: php3/functions/string.c
diff -c php3/functions/string.c:1.120 php3/functions/string.c:1.121
*** php3/functions/string.c:1.120 Sun May 31 09:15:40 1998
--- php3/functions/string.c Sun May 31 09:24:47 1998
***************
*** 30,36 ****
   */
  
  
! /* $Id: string.c,v 1.120 1998/05/31 13:15:40 rasmus Exp $ */
  #ifdef THREAD_SAFE
  #include "tls.h"
  #endif
--- 30,36 ----
   */
  
  
! /* $Id: string.c,v 1.121 1998/05/31 13:24:47 rasmus Exp $ */
  #ifdef THREAD_SAFE
  #include "tls.h"
  #endif
***************
*** 113,119 ****
                  int len = str->value.str.len;
                  int trimmed = 0;
                  char *c = str->value.str.val;
! for (i = 0; i <= len; i++) {
                          if (c[i] == ' ' || c[i] == '\n' || c[i] == '\r' ||
                                  c[i] == '\t' || c[i] == '\v') {
                                  trimmed++;
--- 113,119 ----
                  int len = str->value.str.len;
                  int trimmed = 0;
                  char *c = str->value.str.val;
! for (i = 0; i < len; i++) {
                          if (c[i] == ' ' || c[i] == '\n' || c[i] == '\r' ||
                                  c[i] == '\t' || c[i] == '\v') {
                                  trimmed++;