diff --git a/src/rec/recBi.c b/src/rec/recBi.c index 31ab741fe..6cac773be 100644 --- a/src/rec/recBi.c +++ b/src/rec/recBi.c @@ -235,12 +235,15 @@ static long get_enum_strs(paddr,pes) { struct biRecord *pbi=(struct biRecord *)paddr->precord; - pes->no_str = 2; + pes->no_str = 0; memset(pes->strs,'\0',sizeof(pes->strs)); strncpy(pes->strs[0],pbi->znam,sizeof(pbi->znam)); + if(*pbi->znam!=0) pes->no_str=1; strncpy(pes->strs[1],pbi->onam,sizeof(pbi->onam)); + if(*pbi->onam!=0) pes->no_str=2; return(0); } + static long put_enum_str(paddr,pstring) struct dbAddr *paddr; char *pstring; diff --git a/src/rec/recBo.c b/src/rec/recBo.c index 098b662c1..6c5b36939 100644 --- a/src/rec/recBo.c +++ b/src/rec/recBo.c @@ -368,10 +368,12 @@ static long get_enum_strs(paddr,pes) { struct boRecord *pbo=(struct boRecord *)paddr->precord; - pes->no_str = 2; + pes->no_str = 0; memset(pes->strs,'\0',sizeof(pes->strs)); strncpy(pes->strs[0],pbo->znam,sizeof(pbo->znam)); + if(*pbo->znam!=0) pes->no_str=1; strncpy(pes->strs[1],pbo->onam,sizeof(pbo->onam)); + if(*pbo->onam!=0) pes->no_str=2; return(0); } static long put_enum_str(paddr,pstring)