[hackers] [wmii] Unbreak arg parsing.

From: Kris Maglione <jg_AT_suckless.org>
Date: Tue Jul 03 11:54:38 2007

changeset: 2191:f7d94bbe40b9
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Tue Jul 03 05:49:34 2007 -0400
summary: Unbreak arg parsing.

diff -r 05fe986fcca9 -r f7d94bbe40b9 include/util.h
--- a/include/util.h Tue Jul 03 05:34:55 2007 -0400
+++ b/include/util.h Tue Jul 03 05:49:34 2007 -0400
@@ -54,11 +54,11 @@ int __i;
 
 #define ARGF() ((_inargv && _argv[_argi]) ? \
                         (_argtmp=_argi, _argi=strlen(_argv), __i=_argi,_argv+_argtmp) \
- : ((argc > 0) ? (--argc, ++argv, __i=argc, __p=argv, (*argv-1)) : ((char*)0)))
+ : ((argc > 0) ? (--argc, ++argv, __i=argc, __p=argv, *(argv-1)) : ((char*)0)))
 
 #define EARGF(f) ((_inargv && _argv[_argi]) ? \
                         (_argtmp=_argi, _argi=strlen(_argv), __i=_argi, _argv+_argtmp) \
- : ((argc > 0) ? (--argc, ++argv, __i=argc, __p=argv, (*argv-1)) : ((f), (char*)0)))
+ : ((argc > 0) ? (--argc, ++argv, __i=argc, __p=argv, *(argv-1)) : ((f), (char*)0)))
 
 #ifndef KENC
 # undef USED
Received on Tue Jul 03 2007 - 11:54:38 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:32 UTC