[Mt-daapd-cvs] mt-daapd/src dispatch.c,1.17,1.18
Status: Beta
Brought to you by:
andrew40
From: Ron P. <rp...@us...> - 2005-10-26 07:14:05
|
Update of /cvsroot/mt-daapd/mt-daapd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4681 Modified Files: dispatch.c Log Message: nslu fix for tag lenth in xml serialization Index: dispatch.c =================================================================== RCS file: /cvsroot/mt-daapd/mt-daapd/src/dispatch.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** dispatch.c 26 Oct 2005 06:00:54 -0000 1.17 --- dispatch.c 26 Oct 2005 07:13:53 -0000 1.18 *************** *** 349,353 **** memcpy(block_tag,current,4); block_tag[4] = '\0'; ! block_len = ntohl(*((int*)¤t[4])); data = ¤t[8]; --- 349,354 ---- memcpy(block_tag,current,4); block_tag[4] = '\0'; ! block_len = current[4] << 24 | current[5] << 16 | ! current[6] << 8 | current[7]; data = ¤t[8]; *************** *** 358,361 **** --- 359,363 ---- /* lookup and serialize */ + DPRINTF(E_SPAM,L_DAAP,"%*s %s: %d\n",poi->stack_height,"",block_tag,block_len); pitem=dispatch_xml_lookup_tag(block_tag); if(poi->readable) |