From 1a3d233ba0cb9ef87ccb89b4866dfd987a0773b2 Mon Sep 17 00:00:00 2001 From: Crayon2000 Date: Fri, 3 Mar 2017 22:14:09 -0500 Subject: [PATCH] Stop mentioning GRRLIB v4.1.0 in Introduction There is no need to talk about a 2009 release in the README file introduction. --- GRRLIB/GRRLIB/GRRLIB_ttf.c | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GRRLIB/GRRLIB/GRRLIB_ttf.c b/GRRLIB/GRRLIB/GRRLIB_ttf.c index 8bf1593..63b12a9 100644 --- a/GRRLIB/GRRLIB/GRRLIB_ttf.c +++ b/GRRLIB/GRRLIB/GRRLIB_ttf.c @@ -101,7 +101,7 @@ void GRRLIB_PrintfTTF(int x, int y, GRRLIB_ttfFont *myFont, const char *string, size_t length = strlen(string) + 1; wchar_t *utf32 = (wchar_t*)malloc(length * sizeof(wchar_t)); - if (utf32) { + if (utf32 != NULL) { length = mbstowcs(utf32, string, length); if (length > 0) { utf32[length] = L'\0'; diff --git a/README.md b/README.md index 2745fc5..6aee76a 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ core. This document is written to be viewed with equal clarity in either a web browser or a text editor. -As of v4.1.0, GRRLIB is supplied as a standard C/C++ library (aka. archive) +GRRLIB is supplied as a standard C/C++ library (aka. archive) called 'libgrrlib'. Because GRRLIB processes JPEG and PNG images, it requires the installation of the 'libjpeg' and 'libpngu' libraries. 'libpngu', in turn, requires 'libpng' and 'libpng' requires 'libz'. GRRLIB has FileIO functions