summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Williams <gww@silcom.com>2005-10-10 22:14:51 +0000
committerGeorge Williams <gww@silcom.com>2005-10-10 22:14:51 +0000
commite7dd1068d45867512790d855a99431619248a22e (patch)
tree30bc75ef797e39a35be8c0ce6dc1f5cc05514e7a
parent0b3dda561d2c1cd7c0538cb34df3d4b2d99d0820 (diff)
Someone sent me this patch.
-rw-r--r--fondu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fondu.c b/fondu.c
index 4881ca5..e6be788 100644
--- a/fondu.c
+++ b/fondu.c
@@ -499,13 +499,13 @@ static FOND *BuildFondList(FILE *f,long rlistpos,int subcnt,long rdata_pos,
continue; /* this style doesn't exist */
format = stringoffsets[j]-1;
strlen = strings[0][0];
- if ( format!=0 )
+ if ( format!=0 && format!=-1 )
for ( k=0; k<strings[format][0]; ++k )
strlen += strings[ strings[format][k+1]-1 ][0];
pt = cur->psnames[j] = malloc(strlen+1);
strcpy(pt,strings[ 0 ]+1);
pt += strings[ 0 ][0];
- if ( format!=0 )
+ if ( format!=0 && format!=-1 )
for ( k=0; k<strings[format][0]; ++k ) {
strcpy(pt,strings[ strings[format][k+1]-1 ]+1);
pt += strings[ strings[format][k+1]-1 ][0];