Ignore:
Timestamp:
Jun 22, 2008, 3:30:02 AM (17 years ago)
Author:
Paul Smedley
Message:

Update trunk to 3.2.0rc2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/web/swat.c

    r133 r137  
    8787        /* Count the number of quotes. */
    8888        newstring_len = 1;
    89         while (*str) {
    90                 if ( *str == '\"') {
     89        p = (char *) str;
     90        while (*p) {
     91                if ( *p == '\"') {
    9192                        newstring_len += quote_len;
    9293                } else {
    9394                        newstring_len++;
    9495                }
    95                 ++str;
     96                ++p;
    9697        }
    9798        newstring = TALLOC_ARRAY(ctx, char, newstring_len);
     
    106107                        *p++ = *str;
    107108                }
    108                 ++str;
    109109        }
    110110        *p = '\0';
Note: See TracChangeset for help on using the changeset viewer.