copy units string using DB_UNITS_SIZE
This commit is contained in:
@@ -257,7 +257,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct aaiRecord *paai=(struct aaiRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,paai->egu,sizeof(paai->egu));
|
||||
strncpy(units,paai->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -254,7 +254,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct aaoRecord *paao=(struct aaoRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,paao->egu,sizeof(paao->egu));
|
||||
strncpy(units,paao->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -280,7 +280,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct aiRecord *pai=(struct aiRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,pai->egu,sizeof(pai->egu));
|
||||
strncpy(units,pai->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -334,7 +334,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct aoRecord *pao=(struct aoRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,pao->egu,sizeof(pao->egu));
|
||||
strncpy(units,pao->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -237,7 +237,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct calcRecord *pcalc=(struct calcRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,pcalc->egu,sizeof(pcalc->egu));
|
||||
strncpy(units,pcalc->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -274,7 +274,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct compressRecord *pcompress=(struct compressRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,pcompress->egu,sizeof(pcompress->egu));
|
||||
strncpy(units,pcompress->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct dfanoutRecord *pdfanout=(struct dfanoutRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,pdfanout->egu,sizeof(pdfanout->egu));
|
||||
strncpy(units,pdfanout->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct gsubRecord *psub=(struct gsubRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,psub->egu,sizeof(psub->egu));
|
||||
strncpy(units,psub->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct longinRecord *plongin=(struct longinRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,plongin->egu,sizeof(plongin->egu));
|
||||
strncpy(units,plongin->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -241,7 +241,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct longoutRecord *plongout=(struct longoutRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,plongout->egu,sizeof(plongout->egu));
|
||||
strncpy(units,plongout->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -173,7 +173,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct palRecord *ppal=(struct palRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,ppal->egu,sizeof(ppal->egu));
|
||||
strncpy(units,ppal->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct pidRecord *ppid=(struct pidRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,ppid->egu,sizeof(ppid->egu));
|
||||
strncpy(units,ppid->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -199,7 +199,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct selRecord *psel=(struct selRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,psel->egu,sizeof(psel->egu));
|
||||
strncpy(units,psel->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -295,7 +295,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct steppermotorRecord *psm=(struct steppermotorRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,psm->egu,sizeof(psm->egu));
|
||||
strncpy(units,psm->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -219,7 +219,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct subRecord *psub=(struct subRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,psub->egu,sizeof(psub->egu));
|
||||
strncpy(units,psub->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -248,7 +248,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct subArrayRecord *psa=(struct subArrayRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,psa->egu,sizeof(psa->egu));
|
||||
strncpy(units,psa->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -303,7 +303,7 @@ static long get_units(paddr,units)
|
||||
{
|
||||
struct waveformRecord *pwf=(struct waveformRecord *)paddr->precord;
|
||||
|
||||
strncpy(units,pwf->egu,sizeof(pwf->egu));
|
||||
strncpy(units,pwf->egu,DB_UNITS_SIZE);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user