Replace MAX_UID_T_LEN with calls to STRLEN_MAX_UNSIGNED.

This commit is contained in:
Todd C. Miller
2023-09-19 15:16:30 -06:00
parent d53bbb54b2
commit 94b80e3ad4
11 changed files with 35 additions and 128 deletions

View File

@@ -296,7 +296,7 @@ iolog_deserialize_info(struct log_details *details, char * const user_info[],
const char *runas_uid_str = "0", *runas_euid_str = NULL;
const char *runas_gid_str = "0", *runas_egid_str = NULL;
const char *errstr;
char idbuf[MAX_UID_T_LEN + 2];
char idbuf[STRLEN_MAX_UNSIGNED(uid_t) + 2];
char * const *cur;
struct passwd *pw;
struct group *gr;