Fix the junk-in-strings thing. again.

This commit is contained in:
Ron Pedde 2005-03-05 05:06:26 +00:00
parent ea71a2b410
commit 54ff9e862e
1 changed files with 5 additions and 3 deletions

View File

@ -462,9 +462,11 @@ int daap_serialize_xml(DAAP_BLOCK *root, int fd) {
break;
case 0x09: /* string */
case 0x0C: /* container, but mlit is a string in browse */
if(root->size) {
encoded_string=daap_xml_entity_encode(data,root->size);
r_fdprintf(fd,"%s",encoded_string);
free(encoded_string);
}
break;
case 0x0B: /* version? */
ivalue=data[0] << 8 | data[1];