Describe the bug
On Linux, logic_format only produces the remainder of its formatted value.
Steps to reproduce
Steps to reproduce the behavior:
- Have a
logic_format which uses at least one parameter
- While running on Linux, set the parameters and get the formatted value, as per the entity's usual function
- See error
Expected behavior
The logic_format should produce the formatted value with parameters, as is the case on Windows.
Additional context
This is most likely caused by Q_snprintf being used to concatenate a string onto itself at line 4062 in logicentities.cpp, found here. This method of formatting a string is already considered to be bad practice, and it's known to work on Windows while not working on Linux.
Describe the bug
On Linux,
logic_formatonly produces the remainder of its formatted value.Steps to reproduce
Steps to reproduce the behavior:
logic_formatwhich uses at least one parameterExpected behavior
The
logic_formatshould produce the formatted value with parameters, as is the case on Windows.Additional context
This is most likely caused by
Q_snprintfbeing used to concatenate a string onto itself at line 4062 inlogicentities.cpp, found here. This method of formatting a string is already considered to be bad practice, and it's known to work on Windows while not working on Linux.