mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-24 22:25:56 -05:00
Fix the junk-in-strings thing. again.
This commit is contained in:
parent
ea71a2b410
commit
54ff9e862e
@ -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 */
|
||||
encoded_string=daap_xml_entity_encode(data,root->size);
|
||||
r_fdprintf(fd,"%s",encoded_string);
|
||||
free(encoded_string);
|
||||
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];
|
||||
|
Loading…
Reference in New Issue
Block a user