diff options
author | George Williams <gww@silcom.com> | 2002-09-13 00:48:45 +0000 |
---|---|---|
committer | George Williams <gww@silcom.com> | 2002-09-13 00:48:45 +0000 |
commit | 1ab98b737732981c2c991fcc7f6352f770f5b838 (patch) | |
tree | a68cee0d13c5dfde8bba2565ac61918f8a69a1ff | |
parent | 8a3089f4d47864ff5d6fb69044cdb48c99f77829 (diff) |
Bug if the first character were ENCODING 0 (or if there were an ENCODING 256, etc).
-rw-r--r-- | ufondbdf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -196,7 +196,7 @@ return( NULL ); while ( strcmp(buffer,"ENDFONT\n")!=0 ) { chr = SlurpChar(bdffile,buffer, sizeof(buffer), "ENDCHAR", &enc); if ( enc!=-1 ) { - if ( enc>bdffont->charmax ) { + if ( enc>=bdffont->charmax ) { int new = enc+256; if ( bdffont->charmax==0 ) bdffont->chars = malloc(new*sizeof(char **)); else bdffont->chars = realloc(bdffont->chars,new*sizeof(char **)); |