Motivation
Recent compiler versions produce a warning about the use of the standard library function sprintf because the function does not know the length of its output buffer and thus may write past the end of the provided buffer.
Description
This pull request represents a technical update to avoid these warnings (no features are introduced or changed):
in our own code, the few uses of sprintf are replaced by the use of snprintf, a safe alternative introduced to the standard library some time ago.
in the Voro++ code, all functions related to text output are removed (these functions heavily use sprintf but are never invoked in SKIRT).
Motivation Recent compiler versions produce a warning about the use of the standard library function
sprintf
because the function does not know the length of its output buffer and thus may write past the end of the provided buffer.Description This pull request represents a technical update to avoid these warnings (no features are introduced or changed):
sprintf
are replaced by the use ofsnprintf
, a safe alternative introduced to the standard library some time ago.sprintf
but are never invoked in SKIRT).Tests All functional tests still work.