Odd sprintf behaviour

I would guess you have to add a Line feed in there.