1
0
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:
Nick Briggs 2021-01-07 21:59:07 -08:00 committed by GitHub
parent 4e65eb5d9b
commit c83b4879ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */