Skip to content

Commit

Permalink
don't forget the /0 in utf8sring
Browse files Browse the repository at this point in the history
  • Loading branch information
podborski committed Feb 21, 2024
1 parent a02f75d commit 4ce2678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IsoLib/libisomediafile/src/ISOMeta.c
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ ISO_EXTERN(ISOErr) ISOSetItemInfoItemType(ISOMetaItem item, u32 item_type, char
if(item_uri_type)
{
u32 sz = (u32)strlen(item_uri_type);
infe->item_uri_type = (char *)calloc(1, sz);
infe->item_uri_type = (char *)calloc(1, sz + 1);
memcpy(infe->item_uri_type, item_uri_type, sz);
}
else
Expand Down

0 comments on commit 4ce2678

Please sign in to comment.