summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/sudo/defaults.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sudo/defaults.c b/usr.bin/sudo/defaults.c
index 987876a6c97..482b574c0c1 100644
--- a/usr.bin/sudo/defaults.c
+++ b/usr.bin/sudo/defaults.c
@@ -321,7 +321,7 @@ list_options()
default:
p = strrchr(cur->desc, ':');
if (p)
- (void) printf("%s: %.*s\n", cur->name, p - cur->desc,
+ (void) printf("%s: %.*s\n", cur->name, (int)(p - cur->desc),
cur->desc);
else
(void) printf("%s: %s\n", cur->name, cur->desc);