mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 01:59:38 -04:00
Fix bug in %s, %m, %r and %v macros not displaying data.
This commit is contained in:
parent
3fef3b185e
commit
e91c4f7cc3
1 changed files with 5 additions and 1 deletions
|
|
@ -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++);
|
||||
|
|
|
|||
Loading…
Reference in a new issue