libbb: replace some memmove's with memcpy's (Ron (ron AT debian.org))

bb_dump_dump                                        2674    2611     -63
This commit is contained in:
Denis Vlasenko 2008-11-16 22:21:23 +00:00
parent 3f5f246466
commit 3eb4466bf8

View File

@ -579,11 +579,11 @@ static void display(priv_dumper_t* dumper)
switch (pr->bcnt) {
case 4:
memmove(&fval, bp, sizeof(fval));
memcpy(&fval, bp, sizeof(fval));
printf(pr->fmt, fval);
break;
case 8:
memmove(&dval, bp, sizeof(dval));
memcpy(&dval, bp, sizeof(dval));
printf(pr->fmt, dval);
break;
}
@ -598,11 +598,11 @@ static void display(priv_dumper_t* dumper)
printf(pr->fmt, (int) *bp);
break;
case 2:
memmove(&sval, bp, sizeof(sval));
memcpy(&sval, bp, sizeof(sval));
printf(pr->fmt, (int) sval);
break;
case 4:
memmove(&ival, bp, sizeof(ival));
memcpy(&ival, bp, sizeof(ival));
printf(pr->fmt, ival);
break;
}
@ -629,11 +629,11 @@ static void display(priv_dumper_t* dumper)
printf(pr->fmt, (unsigned) *bp);
break;
case 2:
memmove(&sval, bp, sizeof(sval));
memcpy(&sval, bp, sizeof(sval));
printf(pr->fmt, (unsigned) sval);
break;
case 4:
memmove(&ival, bp, sizeof(ival));
memcpy(&ival, bp, sizeof(ival));
printf(pr->fmt, ival);
break;
}