GNOME Bugzilla – Bug 528339
string_replace function in tracker-configuration.c is broken
Last modified: 2008-04-24 03:29:36 UTC
Please describe the problem: The string_replace function in tracker-configuration.c doesn't work. start_pos is not initialized to the beginning of the string, and the end_pos and start_pos variables are swapped in the append function. Steps to reproduce: 1. Add several newlines to end of tracker.cfg 2. Run tracker-preferences Actual results: segfault in string_replace Expected results: Any occurrence of "needle" in "haystack" should be replaced with "replacement" Does this happen every time? Yes Other information: Patch attached. Probably needs more thorough testing
Created attachment 109350 [details] [review] Patch to fix string_replace function
Thanks so much for this patch for it fixes such a long-standing problem for me, if applied with #528336.
Applied to svn - thanks