misc: Replace the idiom for replacing a string with a function call

Remove a lot of code in favor of a new function that is freeing
the old string and copying the new one. I should have gotten the
context and the strings right.
8 files changed
tree: daebaa0f94f1d7a22cfa0dbcccb9a4409f65a3c9
  1. hlrsync/
  2. linux-kernel/
  3. openbsc/
  4. wireshark/