Commit 9af29db8 authored by Dustin L. Howett's avatar Dustin L. Howett

Allow for non-contained tag lists in dady by passing ---- for the tagtype.

parent fad6e407
......@@ -134,14 +134,19 @@ uint8_t *taglist_to_container(struct tag_info *taglist, uint32_t ntags, uint32_t
n += bprinttag(container+n, taglist[i].type, taglist[i].len, taglist[i].bufp, false);
}
uint8_t *dadytag;
*outlen = abprinttag(&dadytag, tagtype, contentlen, container, checksum);
free(container);
return dadytag;
if(tagtype != '----') {
uint8_t *dadytag;
*outlen = abprinttag(&dadytag, tagtype, contentlen, container, checksum);
free(container);
return dadytag;
} else {
*outlen = n;
return container;
}
}
uint8_t *taglist_to_dady(struct tag_info *taglist, uint32_t ntags, uint32_t *outlen) {
return taglist_to_container(taglist, ntags, TAG_ID_DADY, true, outlen);
return taglist_to_container(taglist, ntags, TAG_ID_DADY, false, outlen);
}
// vim:ft=objc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment