From 41ae285075d0c96733a3422ca2bd08fec04b0a4b Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Wed, 27 Sep 1995 19:52:45 +0000 Subject: [PATCH] copy units string using DB_UNITS_SIZE --- src/rec/recAai.c | 2 +- src/rec/recAao.c | 2 +- src/rec/recAi.c | 2 +- src/rec/recAo.c | 2 +- src/rec/recCalc.c | 2 +- src/rec/recCompress.c | 2 +- src/rec/recDfanout.c | 2 +- src/rec/recGsub.c | 2 +- src/rec/recLongin.c | 2 +- src/rec/recLongout.c | 2 +- src/rec/recPal.c | 2 +- src/rec/recPid.c | 2 +- src/rec/recSel.c | 2 +- src/rec/recSteppermotor.c | 2 +- src/rec/recSub.c | 2 +- src/rec/recSubArray.c | 2 +- src/rec/recWaveform.c | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/rec/recAai.c b/src/rec/recAai.c index 66981ebe1..5f6b1d878 100644 --- a/src/rec/recAai.c +++ b/src/rec/recAai.c @@ -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); } diff --git a/src/rec/recAao.c b/src/rec/recAao.c index 600e6074a..bfd1b200d 100644 --- a/src/rec/recAao.c +++ b/src/rec/recAao.c @@ -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); } diff --git a/src/rec/recAi.c b/src/rec/recAi.c index 27b957d42..ea3f8c097 100644 --- a/src/rec/recAi.c +++ b/src/rec/recAi.c @@ -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); } diff --git a/src/rec/recAo.c b/src/rec/recAo.c index a12b4ac10..d29466a66 100644 --- a/src/rec/recAo.c +++ b/src/rec/recAo.c @@ -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); } diff --git a/src/rec/recCalc.c b/src/rec/recCalc.c index 274455e4b..9df4c0407 100644 --- a/src/rec/recCalc.c +++ b/src/rec/recCalc.c @@ -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); } diff --git a/src/rec/recCompress.c b/src/rec/recCompress.c index 1950c68e0..092d4f148 100644 --- a/src/rec/recCompress.c +++ b/src/rec/recCompress.c @@ -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); } diff --git a/src/rec/recDfanout.c b/src/rec/recDfanout.c index c54464507..15223e3a0 100644 --- a/src/rec/recDfanout.c +++ b/src/rec/recDfanout.c @@ -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); } diff --git a/src/rec/recGsub.c b/src/rec/recGsub.c index a15ae1eeb..7db6c9536 100644 --- a/src/rec/recGsub.c +++ b/src/rec/recGsub.c @@ -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); } diff --git a/src/rec/recLongin.c b/src/rec/recLongin.c index 32ca1b24b..8c7568f1f 100644 --- a/src/rec/recLongin.c +++ b/src/rec/recLongin.c @@ -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); } diff --git a/src/rec/recLongout.c b/src/rec/recLongout.c index b0bef0b15..a1660b025 100644 --- a/src/rec/recLongout.c +++ b/src/rec/recLongout.c @@ -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); } diff --git a/src/rec/recPal.c b/src/rec/recPal.c index cb1805ef7..8169aa602 100644 --- a/src/rec/recPal.c +++ b/src/rec/recPal.c @@ -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); } diff --git a/src/rec/recPid.c b/src/rec/recPid.c index fd92e2ea1..29adb3793 100644 --- a/src/rec/recPid.c +++ b/src/rec/recPid.c @@ -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); } diff --git a/src/rec/recSel.c b/src/rec/recSel.c index fea97baf4..3050c36d3 100644 --- a/src/rec/recSel.c +++ b/src/rec/recSel.c @@ -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); } diff --git a/src/rec/recSteppermotor.c b/src/rec/recSteppermotor.c index 8938e5cd4..3d637e8a5 100644 --- a/src/rec/recSteppermotor.c +++ b/src/rec/recSteppermotor.c @@ -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); } diff --git a/src/rec/recSub.c b/src/rec/recSub.c index f9878976d..7edf2024d 100644 --- a/src/rec/recSub.c +++ b/src/rec/recSub.c @@ -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); } diff --git a/src/rec/recSubArray.c b/src/rec/recSubArray.c index e118f62d0..a686658de 100644 --- a/src/rec/recSubArray.c +++ b/src/rec/recSubArray.c @@ -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); } diff --git a/src/rec/recWaveform.c b/src/rec/recWaveform.c index 156d2d081..154296cf5 100644 --- a/src/rec/recWaveform.c +++ b/src/rec/recWaveform.c @@ -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); }