summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@sudo.ws>2023-05-03 13:36:07 -0600
committerTodd C. Miller <Todd.Miller@sudo.ws>2023-05-03 13:36:07 -0600
commitedde95eb4272efa35f20389442342255a4823296 (patch)
treee948d1ebfce1b63917f7882078853ad1d17b9e05
parent8e6dc7a9fde12a9216639a9829359767f9210418 (diff)
downloadsudo-edde95eb4272efa35f20389442342255a4823296.tar.gz
Back out last change, len must be int, not size_t, for %.*s.
-rw-r--r--lib/util/sudo_debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/sudo_debug.c b/lib/util/sudo_debug.c
index 108eebc81..c06ba8cde 100644
--- a/lib/util/sudo_debug.c
+++ b/lib/util/sudo_debug.c
@@ -589,10 +589,10 @@ sudo_debug_exit_str_masked_v1(const char *func, const char *file, int line,
int subsys, const char *ret)
{
static const char stars[] = "********************************************************************************";
- size_t len = ret ? strlen(ret) : sizeof("(null)") - 1;
+ int len = ret ? strlen(ret) : sizeof("(null)") - 1;
sudo_debug_printf2(NULL, NULL, 0, subsys | SUDO_DEBUG_TRACE,
- "<- %s @ %s:%zu := %.*s", func, file, line, len, ret ? stars : "(null)");
+ "<- %s @ %s:%d := %.*s", func, file, line, len, ret ? stars : "(null)");
}
void