sbm

simple bandwidth monitor
git clone git://git.2f30.org/sbm
Log | Files | Refs | LICENSE

commit be16eb47852b3919d796b75453ecba4c471cfea1
parent 78f8481441825e078b9543dd5327cd515b63f29e
Author: sin <sin@2f30.org>
Date:   Mon, 22 Feb 2016 14:36:49 +0000

Fix arg.h OOB access

Diffstat:
Marg.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arg.h b/arg.h @@ -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_;\