Changeset 15581c1
- Timestamp:
- 2012-06-05T22:34:13Z (13 years ago)
- Branches:
- master
- Children:
- aa88e50
- Parents:
- 222b440
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
storage_xml.c
r222b440 r15581c1 67 67 { 68 68 char *name = xt_find_attr( c, "name" ); 69 70 if( !name ) 71 continue; 69 72 70 73 if( strcmp( node->name, "account" ) == 0 ) … … 169 172 { 170 173 struct xml_parsedata xd[1]; 171 char *fn, buf[204 ];174 char *fn, buf[2048]; 172 175 int fd, st; 173 176 struct xt_parser *xp; … … 225 228 226 229 /* DO NOT call xt_handle() before verifying the password! */ 227 if( xt_handle( xp, NULL, -1 ) == XT_HANDLED )230 if( xt_handle( xp, NULL, 1 ) == XT_HANDLED ) 228 231 ret = STORAGE_OK; 229 232 … … 231 234 232 235 error: 236 xt_free( xp ); 237 g_free( fn ); 233 238 return ret; 234 239 } … … 349 354 } 350 355 356 static gboolean xml_generate_nick( gpointer key, gpointer value, gpointer data ) 357 { 358 struct xt_node *node = xt_new_node( "buddy", NULL, NULL ); 359 xt_add_attr( node, "handle", key ); 360 xt_add_attr( node, "nick", value ); 361 xt_add_child( (struct xt_node *) data, node ); 362 363 return FALSE; 364 } 365 351 366 static storage_status_t xml_save( irc_t *irc, int overwrite ) 352 367 { … … 401 416 402 417 return ret; 403 }404 405 static gboolean xml_generate_nick( gpointer key, gpointer value, gpointer data )406 {407 struct xt_node *node = xt_new_node( "buddy", NULL, NULL );408 xt_add_attr( node, "handle", key );409 xt_add_attr( node, "nick", value );410 xt_add_child( (struct xt_node *) data, node );411 412 return FALSE;413 418 } 414 419
Note: See TracChangeset
for help on using the changeset viewer.