libpurple/protocols/qq/im.c

changeset 25364
aaae94b6ffdf
parent 25152
128b99dfb286
child 25636
21d438022cb4
child 25869
7dbd62851df1
equal deleted inserted replaced
25363:8b9199babad7 25364:aaae94b6ffdf
465 guint8 symbol; 465 guint8 symbol;
466 466
467 /* qq_show_packet("text", (guint8 *)text, strlen(text)); */ 467 /* qq_show_packet("text", (guint8 *)text, strlen(text)); */
468 g_return_val_if_fail(text != NULL && strlen(text) != 0, g_strdup("")); 468 g_return_val_if_fail(text != NULL && strlen(text) != 0, g_strdup(""));
469 469
470 segments = g_strsplit_set(text, "\x14\x15", 0); 470 while ((cur = strchr(text, '\x14')) != NULL)
471 *cur = '\x15';
472
473 segments = g_strsplit(text, "\x15", 0);
471 if(segments == NULL) { 474 if(segments == NULL) {
472 return g_strdup(""); 475 return g_strdup("");
473 } 476 }
474 477
475 converted = g_string_new(""); 478 converted = g_string_new("");

mercurial