From 03f8528315fa46c95991a34f3325d7b33ae5538c Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Sat, 02 May 2020 21:48:36 +0000
Subject: [PATCH] Update source to SDL2 2.0.12
---
source/src/test/SDL_test_memory.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/source/src/test/SDL_test_memory.c b/source/src/test/SDL_test_memory.c
index 6ce72f6..c9f5520 100644
--- a/source/src/test/SDL_test_memory.c
+++ b/source/src/test/SDL_test_memory.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -90,7 +90,7 @@
entry->size = size;
/* Generate the stack trace for the allocation */
- SDL_zero(entry->stack);
+ SDL_zeroa(entry->stack);
#ifdef HAVE_LIBUNWIND_H
{
int stack_index;
@@ -109,7 +109,7 @@
entry->stack[stack_index] = pc;
if (unw_get_proc_name(&cursor, sym, sizeof(sym), &offset) == 0) {
- snprintf(entry->stack_names[stack_index], sizeof(entry->stack_names[stack_index]), "%s+0x%llx", sym, offset);
+ snprintf(entry->stack_names[stack_index], sizeof(entry->stack_names[stack_index]), "%s+0x%llx", sym, (unsigned long long)offset);
}
++stack_index;
--
Gitblit v1.9.3