It’s not a bug, but these parameters get passed straight through to sprintf, so you need to make sure they’re the right things. Obviously sprintf wasn’t designed to understand juce String objects, so that won’t work. Casting it to a (const tchar*) is probably your best plan.