farbfeld

commit26c092599447284fe85e11d322daf034ca96eeb3parent315e95cfadbb68028e20eebd7627e912fff4a1c2Author: Laslo Hunhold <dev@frign.de>
Date: Fri, 4 Aug 2017 15:59:29 +0200
arg.h: Do not modify the array elements of argv[]
The C99 standard explicitly allows to modify argc, argv, but leaves it
open what happens if you modify the content of argv. Under OpenBSD, this
actually has an effect on how the program is listed (e.g. in ps). To
prevent this, we just add a counter variable and use that for iteration.
While at it, this commit also includes a few style changes.
Thanks Hiltjo for reporting this!
Diffstat: