/[pcre]/code/trunk/pcretest.c
ViewVC logotype

Diff of /code/trunk/pcretest.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 362 by ph10, Thu Jul 10 16:03:28 2008 UTC revision 363 by ph10, Thu Jul 10 16:24:33 2008 UTC
# Line 2029  while (!done) Line 2029  while (!done)
2029      len = q - dbuffer;      len = q - dbuffer;
2030    
2031      /* Move the data to the end of the buffer so that a read over the end of      /* Move the data to the end of the buffer so that a read over the end of
2032      the buffer will be seen by valgrind, even if it doesn't cause a crash. */      the buffer will be seen by valgrind, even if it doesn't cause a crash. If
2033        we are using the POSIX interface, we must include the terminating zero. */
2034    
2035      memmove(bptr + buffer_size - len, bptr, len);  #if !defined NOPOSIX
2036      bptr += buffer_size - len;      if (posix || do_posix)
2037          {
2038          memmove(bptr + buffer_size - len - 1, bptr, len + 1);
2039          bptr += buffer_size - len - 1;
2040          }
2041        else
2042    #endif
2043          {
2044          memmove(bptr + buffer_size - len, bptr, len);
2045          bptr += buffer_size - len;
2046          }
2047    
2048      if ((all_use_dfa || use_dfa) && find_match_limit)      if ((all_use_dfa || use_dfa) && find_match_limit)
2049        {        {

Legend:
Removed from v.362  
changed lines
  Added in v.363

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12