pidgin/plugins/disco/gtkdisco.c

changeset 40700
4c3ee00e6107
parent 40534
8dad2981fb86
child 40944
6e95a22ee02f
equal deleted inserted replaced
40699:1db26307f960 40700:4c3ee00e6107
219 219
220 username = purple_account_get_username(dialog->account); 220 username = purple_account_get_username(dialog->account);
221 at = strchr(username, '@'); 221 at = strchr(username, '@');
222 slash = strchr(username, '/'); 222 slash = strchr(username, '/');
223 if (at && !slash) { 223 if (at && !slash) {
224 server = g_strdup_printf("%s", at + 1); 224 server = g_strdup(at + 1);
225 } else if (at && slash && at + 1 < slash) { 225 } else if (at && slash && at + 1 < slash) {
226 server = g_strdup_printf("%.*s", (int)(slash - (at + 1)), at + 1); 226 server = g_strdup_printf("%.*s", (int)(slash - (at + 1)), at + 1);
227 } 227 }
228 228
229 if (server == NULL) 229 if (server == NULL)

mercurial