Fix bug in %s, %m, %r and %v macros not displaying data.

This commit is contained in:
David Nugent 1997-02-02 07:38:26 +00:00
parent 3fef3b185e
commit e91c4f7cc3

View file

@ -93,7 +93,6 @@ struct termios tmode, omode;
int crmod, digit, lower, upper;
char hostname[MAXHOSTNAMELEN];
struct utsname kerninfo;
char name[16];
char dev[] = _PATH_DEV;
char ttyn[32];
@ -566,6 +565,11 @@ putf(cp)
time_t t;
char *slash, db[100];
static struct utsname kerninfo;
if (!*kerninfo.sysname)
uname(&kerninfo);
while (*cp) {
if (*cp != '%') {
putchr(*cp++);