ii

git clone https://orangeshoelaces.net/git/ii.git

fd867aebd1b5ccf1b427e55cf0724137461c3ee9

Author: Quentin Rameau on 12/03/2017

Committer: Hiltjo Posthuma on 12/03/2017

Fix arg.h

Stats

arg.h | 12 ++++----
1 file changed, 6 insertions(+), 6 deletions(-)

Patch

diff --git a/arg.h b/arg.h
index fe4d7e5..a22e019 100644
--- a/arg.h
+++ b/arg.h
@@ -35,16 +35,16 @@ extern char *argv0;
 
 #define ARGC()		argc_
 
-#define EARGF(x)	((argv[0][1] == '\0' && argv[1] == NULL)?\
+#define EARGF(x)	((argv[0][i_+1] == '\0' && argv[1] == NULL)?\
 				((x), abort(), (char *)0) :\
-				(brk_ = 1, (argv[0][1] != '\0')?\
-					(&argv[0][1]) :\
+				(brk_ = 1, (argv[0][i_+1] != '\0')?\
+					(&argv[0][i_+1]) :\
 					(argc--, argv++, argv[0])))
 
-#define ARGF()		((argv[0][1] == '\0' && argv[1] == NULL)?\
+#define ARGF()		((argv[0][i_+1] == '\0' && argv[1] == NULL)?\
 				(char *)0 :\
-				(brk_ = 1, (argv[0][1] != '\0')?\
-					(&argv[0][1]) :\
+				(brk_ = 1, (argv[0][i_+1] != '\0')?\
+					(&argv[0][i_+1]) :\
 					(argc--, argv++, argv[0])))
 
 #endif