decklink: Calculate string size before malloc