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:
parent
a9e104d591
commit
c137858b84
1 changed files with 2 additions and 0 deletions
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue