[BusyBox] which.c does not compile with gcc 2.95.4

Steven Scholz steven.scholz at imc-berlin.de
Wed Mar 3 14:04:50 UTC 2004


Hi there,

the following trivial patch fixes that:

diff -u -r1.7 which.c
--- debianutils/which.c 1 Mar 2004 08:32:49 -0000       1.7
+++ debianutils/which.c 3 Mar 2004 13:49:29 -0000
@@ -56,8 +56,8 @@
         while (argc-- > 0) {
                 char *buf;
                 char *path_n;
-               argv++;
                 char found = 0;
+               argv++;

                 /*
                  * Check if we were given the full path, first.


Thanks!

-- 
Steven Scholz

imc Measurement & Control               imc Meßsysteme GmbH
Voltastr. 5                             Voltastr. 5
13355 Berlin                            13355 Berlin
Germany                                 Deutschland





More information about the busybox mailing list