1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-31 11:23:40 +00:00

(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

View file

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