Mercurial > pidgin.yaz
diff src/util.c @ 5515:439a05a6b409
[gaim-migrate @ 5914]
This makes the manual browser setting good.
-You can have multiple %s's in a browser command (I don't know why you
would want to, but you can)
-It doesn't double-free memory and cause gaim to crash
-If there is no %s, it adds the URL to the end of the command (it did
this before, I'm just re-iterating that it still works)
-It's fewer lines of code and it's cleaner, I think
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 25 May 2003 18:35:24 +0000 |
parents | 3c7748b24410 |
children | 10920646988f |
line wrap: on
line diff
--- a/src/util.c Sun May 25 17:06:30 2003 +0000 +++ b/src/util.c Sun May 25 18:35:24 2003 +0000 @@ -1170,3 +1170,14 @@ g_free(b_norm); return ret; } + +gchar *gaim_strreplace(const gchar *string, const gchar *delimiter, const gchar *replacement) { + gchar **split; + gchar *ret; + + split = g_strsplit(string, delimiter, 0); + ret = g_strjoinv(replacement, split); + g_strfreev(split); + + return ret; +}