diff --git a/src/db/dbEvent.c b/src/db/dbEvent.c index 5b5650ee8..351b562f6 100644 --- a/src/db/dbEvent.c +++ b/src/db/dbEvent.c @@ -567,8 +567,8 @@ register struct event_block *pevent; * union copy of char in the db at an odd * address */ - memcpy( pevent->paddr->pfield, - &ev_que->valque[putix].field, + memcpy( &ev_que->valque[putix].field, + pevent->paddr->pfield, dbr_size[pevent->paddr->field_type]); } @@ -645,8 +645,8 @@ register unsigned int select; * union copy of char in the db at an odd * address */ - memcpy( pvalue, - &ev_que->valque[putix].field, + memcpy( &ev_que->valque[putix].field, + pvalue, dbr_size[event->paddr->field_type]); } diff --git a/src/db/dbls.c b/src/db/dbls.c index 3af017403..7e19ef05e 100644 --- a/src/db/dbls.c +++ b/src/db/dbls.c @@ -772,8 +772,8 @@ DbRecDes(fp, fflag) &dbRecDes->papRecTypDes[i]->papFldDes[j]->interest, dbRecDes->papRecTypDes[i]->papFldDes[j]->interest); bufOut(fp, fflag); - memcpy((void *) & dbRecDes->papRecTypDes[i]->papFldDes[j]->initial, - (void *) buff, 8); + memcpy((void *) buff, + (void *) & dbRecDes->papRecTypDes[i]->papFldDes[j]->initial, 8); sprintf(buffer, "%8x[%8x][%8x]\tinitial", &dbRecDes->papRecTypDes[i]->papFldDes[j]->initial, buff[0], buff[1]); @@ -782,8 +782,8 @@ DbRecDes(fp, fflag) &dbRecDes->papRecTypDes[i]->papFldDes[j]->range1.fldnum, dbRecDes->papRecTypDes[i]->papFldDes[j]->range1.fldnum); bufOut(fp, fflag); - memcpy((void *) & dbRecDes->papRecTypDes[i]->papFldDes[j]->range1.value, - (void *) buff, 8); + memcpy((void *) buff, + (void *) & dbRecDes->papRecTypDes[i]->papFldDes[j]->range1.value, 8); sprintf(buffer, "%8x[%8x][%8x]\trange1.value", &dbRecDes->papRecTypDes[i]->papFldDes[j]->range1.value, buff[0], buff[1]); @@ -792,8 +792,8 @@ DbRecDes(fp, fflag) &dbRecDes->papRecTypDes[i]->papFldDes[j]->range2.fldnum, dbRecDes->papRecTypDes[i]->papFldDes[j]->range2.fldnum); bufOut(fp, fflag); - memcpy((void *) & dbRecDes->papRecTypDes[i]->papFldDes[j]->range2.value, - (void *) buff, 8); + memcpy((void *) buff, + (void *) & dbRecDes->papRecTypDes[i]->papFldDes[j]->range2.value, 8); sprintf(buffer, "%8x[%8x][%8x]\trange2.value", &dbRecDes->papRecTypDes[i]->papFldDes[j]->range2.value, buff[0], buff[1]);