mirror of
https://github.com/sheumann/hush.git
synced 2024-08-21 11:28:57 +00:00
libbb: replace some memmove's with memcpy's (Ron (ron AT debian.org))
bb_dump_dump 2674 2611 -63
This commit is contained in:
parent
3f5f246466
commit
3eb4466bf8
12
libbb/dump.c
12
libbb/dump.c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user