From 75b0264f35d8895c1e64c7c7bc85d1572d167cf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Coelho?= Date: Tue, 29 Oct 2019 14:57:19 +0000 Subject: fix various problems, thanks CppCheck :) (#1005) * explained a bit more the core_window_letterbox example * fixed a few 'ups' moments that could lead to mild head pain and time loss --- src/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/text.c') diff --git a/src/text.c b/src/text.c index 6d55fa8d..3f8e22b1 100644 --- a/src/text.c +++ b/src/text.c @@ -1394,7 +1394,7 @@ char *TextToUtf8(int *codepoints, int length) } // Resize memory to text length + string NULL terminator - realloc(text, size + 1); + text = realloc(text, size + 1); return text; } -- cgit v1.2.3