Odd sprintf behaviour

C and C++ will give you the same error.