farbfeld

suckless image format with conversion tools
git clone git://git.suckless.org/farbfeld
Log | Files | Refs | README | LICENSE

commit 37e44c95655e252aa7763671f53524dceaf8a65b
parent 31651271e1afd99983fb3d0ec51a273e31aaf4e9
Author: Laslo Hunhold <dev@frign.de>
Date:   Wed,  2 Aug 2017 08:36:28 +0200

Minor style change in arg.h

We decrement argc first before incrementing argv, so we never have a
state where we potentially point to uncharted territory.

Diffstat:
arg.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arg.h b/arg.h @@ -22,7 +22,7 @@ extern char *argv0; /* int main(int argc, char *argv[]) */ -#define ARGBEGIN for (argv0 = *argv, argv++, argc--; \ +#define ARGBEGIN for (argv0 = *argv, argc--, argv++; \ *argv && (*argv)[0] == '-' && (*argv)[1]; argc--, argv++) { \ int argparsed; \ if ((*argv)[1] == '-' && (*argv)[2] == '\0') { \