Renamed SDL_size_add_overflow() and SDL_size_mul_overflow()
This commit is contained in:
1 parent
fb7245fb93
commit
eacf119923
11 files changed
+117
-109
No files matched your search
+1
-1
@@ -175,7 +175,7 @@ static SDL_AssertState SDLCALL SDL_PromptAssertion(const SDL_AssertData *data, v
|
||||
|
||||
// .. and if it didn't, try to allocate as much room as we actually need.
|
||||
if (len >= (int)buf_len) {
|
||||
if (SDL_size_add_overflow(len, 1, &buf_len) == 0) {
|
||||
if (SDL_size_add_check_overflow(len, 1, &buf_len)) {
|
||||
message = (char *)SDL_malloc(buf_len);
|
||||
if (message) {
|
||||
len = SDL_RenderAssertMessage(message, buf_len, data);
|
||||
|
||||
Reference in new issue
Block a user