as my former bug report has been closed and not reactivated, I now try it other way round, explaining the problem from another point of view: sprintf currently does not support the formatter "%f" for ...
Safer versions of strcat, strcpy, and sprintf that prevent buffer overflows. They provide the same interface as the original versions, but they will not write across the boundaries of the buffer.