diff options
author | laforge <laforge> | 2001-10-16 09:51:33 +0000 |
---|---|---|
committer | laforge <laforge> | 2001-10-16 09:51:33 +0000 |
commit | 53f7368a04b654a2fdeef2da827de67fc81a262e (patch) | |
tree | fa00c701a3694cf15a2c7305193edbd66d8122f9 | |
parent | 25b6b3aa00ce0e90322493cca41318d1464ccda8 (diff) |
fix of-by-one for-loop for debug statement
-rw-r--r-- | iptables-restore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables-restore.c b/iptables-restore.c index 8465beb..a6e818e 100644 --- a/iptables-restore.c +++ b/iptables-restore.c @@ -4,7 +4,7 @@ * * This coude is distributed under the terms of GNU GPL * - * $Id: iptables-restore.c,v 1.14 2001/08/06 18:50:22 laforge Exp $ + * $Id: iptables-restore.c,v 1.15 2001/10/16 07:53:34 laforge Exp $ */ #include <getopt.h> @@ -361,7 +361,7 @@ int main(int argc, char *argv[]) DEBUGP("calling do_command(%u, argv, &%s, handle):\n", newargc, curtable); - for (a = 0; a <= newargc; a++) + for (a = 0; a < newargc; a++) DEBUGP("argv[%u]: %s\n", a, newargv[a]); ret = do_command(newargc, newargv, |