Introduction
Introduction Statistics Contact Development Disclaimer Help
targ.h: fixed argv checks order - st - [fork] customized build of st, the simpl…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 4fdba860c8db70035e9749806ecc6ca2d7c418d0
parent 6d636beb229cebf3b897446c72c7a341bee9f820
Author: Lucas Gabriel Vuotto <[email protected]>
Date: Fri, 19 Feb 2016 15:59:49 -0300
arg.h: fixed argv checks order
This prevents accessing to a potentially out-of-bounds memory section.
Signed-off-by: Lucas Gabriel Vuotto <[email protected]>
Signed-off-by: Christoph Lohmann <[email protected]>
Diffstat:
M arg.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/arg.h b/arg.h
t@@ -10,8 +10,8 @@ extern char *argv0;
/* use main(int argc, char *argv[]) */
#define ARGBEGIN for (argv0 = *argv, argv++, argc--;\
- argv[0] && argv[0][1]\
- && argv[0][0] == '-';\
+ argv[0] && argv[0][0] == '-'\
+ && argv[0][1];\
argc--, argv++) {\
char argc_;\
char **argv_;\
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.