diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-11-16 22:21:23 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-11-16 22:21:23 +0000 |
commit | 3eb4466bf8f55e9c9bf42505f4f0ebe7958d49e5 (patch) | |
tree | 1da3c930df8068abe3eeba44767295e56ef6e4d7 | |
parent | 3f5f24646656b761d2d50e57d778f41b13bffa11 (diff) | |
download | busybox-3eb4466bf8f55e9c9bf42505f4f0ebe7958d49e5.tar.gz |
libbb: replace some memmove's with memcpy's (Ron (ron AT debian.org))
bb_dump_dump 2674 2611 -63
-rw-r--r-- | libbb/dump.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libbb/dump.c b/libbb/dump.c index e7722de5a..2e777c358 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; } |