ii

irc it, simple FIFO based irc client
git clone git://git.suckless.org/ii
Log | Files | Refs | README | LICENSE

commit fd867aebd1b5ccf1b427e55cf0724137461c3ee9
parent 31b2445000b7f5f88e363f85de1e70e91c2adbaf
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sun,  3 Dec 2017 22:16:59 +0100

Fix arg.h

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

diff --git 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