(trunk utils) #3964 "transmission-edit replace option cuts off strings" -- fixed.

The trailing text after the last substring match wasn't being retained.
This commit is contained in:
Jordan Lee 2011-01-30 16:40:11 +00:00
parent a9e104d591
commit c137858b84
1 changed files with 2 additions and 0 deletions

View File

@ -156,6 +156,8 @@ replaceSubstr( const char * str, const char * in, const char * out )
str = walk + inlen;
}
evbuffer_add( buf, str, strlen( str ) );
return evbuffer_free_to_str( buf );
}