now deals with Argv == 1

This commit is contained in:
Todd C. Miller
1995-06-08 01:36:02 +00:00
parent 0a94dbed53
commit 7f5a33a01e

View File

@@ -251,9 +251,14 @@ void log_error(code)
strcat(logline, cmnd); /* stuff the command into the logline */ strcat(logline, cmnd); /* stuff the command into the logline */
strcat(logline, " "); strcat(logline, " ");
argc = Argc - 2; if (Argc > 1) {
argv = Argv; argc = Argc - 2;
argv++; argv = Argv + 1;
} else {
argc = Argc - 1;
argv = Argv;
}
p = logline + strlen(logline); p = logline + strlen(logline);
count = (int) (logline + MAXLOGLEN - p); count = (int) (logline + MAXLOGLEN - p);