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