#include <ctype.h>
#include <time.h>
#include <sys/stat.h>
+#include <limits.h>
+#include <errno.h>
#ifdef UCLINUX
/* <getopt.h> or "getopt.h" would include insufficient getopt.h from uClinux */
for(i = 2; i < argc; i++)
nargv[i-2] = argv[i];
- nargv[argc] = NULL; /* required by gnokiid() for execv(3) */
+ nargv[argc-2] = NULL; /* required by gnokiid() for execv(3) */
if(checkargs(c, gals, nargc)) {