Changeset 32f6f1637a8a074aa51f1c3e0a79963d67afdb79

Show
Ignore:
Timestamp:
05/16/08 14:16:12 (7 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1210947372 +0000
git-parent:

[b4b4512db2476f47ce8397f57987a0597fb911c3]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1210947372 +0000
Message:

fixes #20

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_console_state.c

    r125a593 r32f6f16  
    3838  slen = strlen(src); 
    3939  /* Worst case is just a stream of replacements. */ 
    40   maxlen = (slen / patlen) * vlen + (slen % patlen) + 1
     40  maxlen = (slen / patlen) * vlen + (slen % patlen) + 2
    4141  cp = result = malloc(maxlen); 
    4242  searchstart = src;