Skip to content

Commit fac2a49

Browse files
committed
ptrace_readv_string: quiet sign-compare warning
1 parent 2e93eab commit fac2a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exec_ptrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ ptrace_readv_string(pid_t pid, unsigned long addr, char *buf, size_t bufsize)
398398
if (cp != NULL)
399399
debug_return_ssize_t((cp - buf0) + 1); /* includes NUL */
400400
/* No NUL terminator, we should have a full page. */
401-
if (nread != page_size) {
401+
if ((size_t)nread != page_size) {
402402
sudo_debug_printf(SUDO_DEBUG_ERROR|SUDO_DEBUG_LINENO,
403403
"process_vm_readv(%d, [0x%lx, %zu], 1, [0x%lx, %zu], 1, 0)"
404404
" -> %zd",

0 commit comments

Comments
 (0)