diff --git a/Source/Diagnostic/Platform.h b/Source/Diagnostic/Platform.h index b38f7c5..7d5c97e 100644 --- a/Source/Diagnostic/Platform.h +++ b/Source/Diagnostic/Platform.h @@ -93,7 +93,7 @@ * workings, like a slight optimization. This value will reset to 0 * every new minor version. */ -#define __LETO__VERSION__TWEAK__ 1 +#define __LETO__VERSION__TWEAK__ 2 /** * @brief This is the string represenation of Leto's base version, diff --git a/Source/Utilities/Strings.c b/Source/Utilities/Strings.c index 276b79b..efe862c 100644 --- a/Source/Utilities/Strings.c +++ b/Source/Utilities/Strings.c @@ -34,8 +34,9 @@ void LetoSetStringF(bool warn_overcat, char** buffer, int attempted_characters = vsnprintf(temp_buffer, max_string_length, format, args); - if (attempted_characters < 0 || - (size_t)attempted_characters > max_string_length && warn_overcat) + if ((attempted_characters < 0 || + (size_t)attempted_characters > max_string_length) && + warn_overcat) LetoReportWarning(string_overconcat); if (*buffer != NULL) free(*buffer);