use memcmp() not bcmp()
authorMike Frysinger <vapier@gentoo.org>
Sun, 16 Apr 2006 05:51:47 +0000 (05:51 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 16 Apr 2006 05:51:47 +0000 (05:51 -0000)
libbb/dump.c

index c09abf8c4275c5bbe5164447f0cf4ef926b42c24..9337ca63a95b64671d2a103c20eb8f338e54866a 100644 (file)
@@ -380,7 +380,7 @@ static unsigned char *get(void)
                        if (need == bb_dump_blocksize) {
                                return ((unsigned char *) NULL);
                        }
-                       if (bb_dump_vflag != ALL && !bcmp(curp, savp, nread)) {
+                       if (bb_dump_vflag != ALL && !memcmp(curp, savp, nread)) {
                                if (bb_dump_vflag != DUP) {
                                        printf("*\n");
                                }
@@ -405,7 +405,7 @@ static unsigned char *get(void)
                }
                if (!(need -= n)) {
                        if (bb_dump_vflag == ALL || bb_dump_vflag == FIRST
-                               || bcmp(curp, savp, bb_dump_blocksize)) {
+                               || memcmp(curp, savp, bb_dump_blocksize)) {
                                if (bb_dump_vflag == DUP || bb_dump_vflag == FIRST) {
                                        bb_dump_vflag = WAIT;
                                }