diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-09-22 13:12:12 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-09-22 13:12:12 +0100 |
commit | d0752e8b08d37395fd036046552fa6b4fb92ac17 (patch) | |
tree | 7e572ef12d0a59d4f497aa98be389d13e668f48e /protocols/msn/ns.c | |
parent | 55ccc9a0dffdc96b7a5c6d41de2e97d2cd1741d9 (diff) |
Little cleanup. Use xt_from_string() where possible.
Diffstat (limited to 'protocols/msn/ns.c')
-rw-r--r-- | protocols/msn/ns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c index 5436270e..a2f1b4bd 100644 --- a/protocols/msn/ns.c +++ b/protocols/msn/ns.c @@ -682,7 +682,7 @@ static int msn_ns_message( struct msn_handler_data *handler, char *msg, int msgl struct xt_node *ubx, *psm; char *psm_text = NULL; - ubx = xt_from_string( msg ); + ubx = xt_from_string( msg, msglen ); if( ubx && strcmp( ubx->name, "Data" ) == 0 && ( psm = xt_find_node( ubx->children, "PSM" ) ) ) psm_text = psm->text; @@ -694,7 +694,7 @@ static int msn_ns_message( struct msn_handler_data *handler, char *msg, int msgl { struct xt_node *adl, *d, *c; - if( !( adl = xt_from_string( msg ) ) ) + if( !( adl = xt_from_string( msg, msglen ) ) ) return 1; for( d = adl->children; d; d = d->next ) |