diff options
author | George Williams <gww@silcom.com> | 2005-10-10 22:14:51 +0000 |
---|---|---|
committer | George Williams <gww@silcom.com> | 2005-10-10 22:14:51 +0000 |
commit | e7dd1068d45867512790d855a99431619248a22e (patch) | |
tree | 30bc75ef797e39a35be8c0ce6dc1f5cc05514e7a | |
parent | 0b3dda561d2c1cd7c0538cb34df3d4b2d99d0820 (diff) |
Someone sent me this patch.
-rw-r--r-- | fondu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]; |