summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko2008-11-16 22:21:23 +0000
committerDenis Vlasenko2008-11-16 22:21:23 +0000
commit3eb4466bf8f55e9c9bf42505f4f0ebe7958d49e5 (patch)
tree1da3c930df8068abe3eeba44767295e56ef6e4d7 /libbb
parent3f5f24646656b761d2d50e57d778f41b13bffa11 (diff)
downloadbusybox-3eb4466bf8f55e9c9bf42505f4f0ebe7958d49e5.zip
busybox-3eb4466bf8f55e9c9bf42505f4f0ebe7958d49e5.tar.gz
libbb: replace some memmove's with memcpy's (Ron (ron AT debian.org))
bb_dump_dump 2674 2611 -63
Diffstat (limited to 'libbb')
-rw-r--r--libbb/dump.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libbb/dump.c b/libbb/dump.c
index e7722de..2e777c3 100644
--- a/libbb/dump.c
+++ b/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;
}