mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-19 09:18:33 +00:00
Fix mismatch between format string and value in uutils.c (#194)
This commit is contained in:
parent
4e65eb5d9b
commit
c83b4879ab
@ -268,7 +268,7 @@ LispPTR unix_getparm(LispPTR *args) {
|
||||
if ((pwd = getpwuid(getuid())) == NULL) return NIL;
|
||||
envvalue = pwd->pw_gecos;
|
||||
} else if (strcmp(envname, "HOSTID") == 0) {
|
||||
sprintf(result, "%x", gethostid());
|
||||
snprintf(result, sizeof(result), "%lx", gethostid());
|
||||
envvalue = result;
|
||||
}
|
||||
#endif /* DOS */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user