mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-27 12:22:24 +00:00
Fix mismatch between format string and value in uutils.c (#194)
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user