summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2011-12-17 23:46:47 +0000
committerDimitry Andric <dim@FreeBSD.org>2011-12-17 23:46:47 +0000
commit39b346d1ea0c3305d9a5ab74fb38f6a64a01ef73 (patch)
tree39ed5a18431a8468a60d343b984e831bb93cfe54
parentd8c29cf81746b7a5551462b1318f8ff9bb76eacf (diff)
downloadpw-darwin-39b346d1ea0c3305d9a5ab74fb38f6a64a01ef73.tar.gz
pw-darwin-39b346d1ea0c3305d9a5ab74fb38f6a64a01ef73.zip
In usr.sbin/pw/pw_user.c, use the correct printf length modifier for a
ptrdiff_t. MFC after: 1 week
-rw-r--r--pw/pw_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index db33746..0001a41 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -1208,7 +1208,7 @@ pw_checkname(u_char *name, int gecos)
if (reject) {
snprintf(showch, sizeof(showch), (*ch >= ' ' && *ch < 127)
? "`%c'" : "0x%02x", *ch);
- errx(EX_DATAERR, "invalid character %s at position %d in %s",
+ errx(EX_DATAERR, "invalid character %s at position %td in %s",
showch, (ch - name), showtype);
}
if (!gecos && (ch - name) > LOGNAMESIZE)