summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Williams <gww@silcom.com>2002-09-13 00:48:45 +0000
committerGeorge Williams <gww@silcom.com>2002-09-13 00:48:45 +0000
commit1ab98b737732981c2c991fcc7f6352f770f5b838 (patch)
treea68cee0d13c5dfde8bba2565ac61918f8a69a1ff
parent8a3089f4d47864ff5d6fb69044cdb48c99f77829 (diff)
Bug if the first character were ENCODING 0 (or if there were an ENCODING 256, etc).
-rw-r--r--ufondbdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ufondbdf.c b/ufondbdf.c
index 8c357b6..a6162b8 100644
--- a/ufondbdf.c
+++ b/ufondbdf.c
@@ -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 **));