libdrawtext

diff src/font.c @ 3:fe0c54e574ae

fixed a bug in utf-8 decoding
author John Tsiombikas <nuclear@mutantstargoat.com>
date Thu, 15 Sep 2011 23:32:39 +0300
parents bfe431dd1d80
children 095ff7ca4e74
line diff
     1.1 --- a/src/font.c	Thu Sep 15 13:56:54 2011 +0300
     1.2 +++ b/src/font.c	Thu Sep 15 23:32:39 2011 +0300
     1.3 @@ -155,7 +155,7 @@
     1.4  
     1.5  	FT_Set_Char_Size(fnt->face, 0, sz * 64, 72, 72);
     1.6  
     1.7 -	if(!(gmap = malloc(sizeof *gmap))) {
     1.8 +	if(!(gmap = calloc(1, sizeof *gmap))) {
     1.9  		return 0;
    1.10  	}
    1.11