SCCS-vsn: usr.bin/last/last.c 5.10
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)last.c 5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)last.c 5.10 (Berkeley) %G%";
fputs("last: malloc failure.\n", stderr);
exit(1);
}
fputs("last: malloc failure.\n", stderr);
exit(1);
}
- if (!strcmp(optarg, "co"))
+ if (!strcmp(arg, "co"))
(void)strcpy(mval, "console");
else {
(void)strcpy(mval, "tty");
(void)strcpy(mval, "console");
else {
(void)strcpy(mval, "tty");