comparison libpurple/protocols/myspace/message.c @ 17330:dc7ed2ecf0cb

Fix msim_parse() to correctly parse into an MsimMessage *.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Fri, 01 Jun 2007 04:55:42 +0000
parents 793301c04e3a
children 9accf6d6cd61
comparison
equal deleted inserted replaced
17329:c4bd017a825e 17330:dc7ed2ecf0cb
481 /* Note: returns a new string. */ 481 /* Note: returns a new string. */
482 value = msim_unescape(token); 482 value = msim_unescape(token);
483 483
484 /* Always append strings, since protocol has no incoming 484 /* Always append strings, since protocol has no incoming
485 * type information for each field. */ 485 * type information for each field. */
486 msim_msg_append(msg, key, MSIM_TYPE_STRING, value); 486 msg = msim_msg_append(msg, g_strdup(key), MSIM_TYPE_STRING, value);
487 #ifdef MSIM_DEBUG_PARSE 487 #ifdef MSIM_DEBUG_PARSE
488 purple_debug_info("msim", "insert string: |%s|=|%s|\n", key, value); 488 purple_debug_info("msim", "insert string: |%s|=|%s|\n", key, value);
489 #endif 489 #endif
490 } else { 490 } else {
491 /* Even numbered indexes are key names. */ 491 /* Even numbered indexes are key names. */