mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-19 02:15:18 -04: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;
|
break;
|
||||||
case 0x09: /* string */
|
case 0x09: /* string */
|
||||||
case 0x0C: /* container, but mlit is a string in browse */
|
case 0x0C: /* container, but mlit is a string in browse */
|
||||||
encoded_string=daap_xml_entity_encode(data,root->size);
|
if(root->size) {
|
||||||
r_fdprintf(fd,"%s",encoded_string);
|
encoded_string=daap_xml_entity_encode(data,root->size);
|
||||||
free(encoded_string);
|
r_fdprintf(fd,"%s",encoded_string);
|
||||||
|
free(encoded_string);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 0x0B: /* version? */
|
case 0x0B: /* version? */
|
||||||
ivalue=data[0] << 8 | data[1];
|
ivalue=data[0] << 8 | data[1];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user