summaryrefslogtreecommitdiff
path: root/libbb/dump.c
diff options
context:
space:
mode:
authorMike Frysinger2006-04-16 05:58:21 +0000
committerMike Frysinger2006-04-16 05:58:21 +0000
commit1a54030445c802b79491c286988ee4d25fdb9665 (patch)
tree146414467e7f28fe49270853815ea4d19efddb7d /libbb/dump.c
parent4b7b8a58a19ec00a77670e9c86c568a50626e16e (diff)
downloadbusybox-1a54030445c802b79491c286988ee4d25fdb9665.zip
busybox-1a54030445c802b79491c286988ee4d25fdb9665.tar.gz
use memmove() instead of bcopy()
Diffstat (limited to 'libbb/dump.c')
-rw-r--r--libbb/dump.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libbb/dump.c b/libbb/dump.c
index 9337ca6..9dcfb54 100644
--- a/libbb/dump.c
+++ b/libbb/dump.c
@@ -550,12 +550,12 @@ static void display(void)
switch (pr->bcnt) {
case 4:
- bcopy((char *) bp, (char *) &fval,
+ memmove((char *) &fval, (char *) bp,
sizeof(fval));
printf(pr->fmt, fval);
break;
case 8:
- bcopy((char *) bp, (char *) &dval,
+ memmove((char *) &dval, (char *) bp,
sizeof(dval));
printf(pr->fmt, dval);
break;
@@ -571,12 +571,12 @@ static void display(void)
printf(pr->fmt, (int) *bp);
break;
case 2:
- bcopy((char *) bp, (char *) &sval,
+ memmove((char *) &sval, (char *) bp,
sizeof(sval));
printf(pr->fmt, (int) sval);
break;
case 4:
- bcopy((char *) bp, (char *) &ival,
+ memmove((char *) &ival, (char *) bp,
sizeof(ival));
printf(pr->fmt, ival);
break;
@@ -604,12 +604,12 @@ static void display(void)
printf(pr->fmt, (unsigned int) * bp);
break;
case 2:
- bcopy((char *) bp, (char *) &sval,
+ memmove((char *) &sval, (char *) bp,
sizeof(sval));
printf(pr->fmt, (unsigned int) sval);
break;
case 4:
- bcopy((char *) bp, (char *) &ival,
+ memmove((char *) &ival, (char *) bp,
sizeof(ival));
printf(pr->fmt, ival);
break;