diff options
author | dim <dim@FreeBSD.org> | 2011-12-17 23:46:47 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-17 23:46:47 +0000 |
commit | 8521853f9c95a2d0e4ad1cbdaa69d441f0d7cc93 (patch) | |
tree | b2c416e18d4dfb162616d38c9b3b28d42e138789 /usr.sbin/pw | |
parent | 0927bdfaaa117703aaea88545c771623b986c8ae (diff) | |
download | FreeBSD-src-8521853f9c95a2d0e4ad1cbdaa69d441f0d7cc93.zip FreeBSD-src-8521853f9c95a2d0e4ad1cbdaa69d441f0d7cc93.tar.gz |
In usr.sbin/pw/pw_user.c, use the correct printf length modifier for a
ptrdiff_t.
MFC after: 1 week
Diffstat (limited to 'usr.sbin/pw')
-rw-r--r-- | usr.sbin/pw/pw_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index db33746..0001a41 100644 --- a/usr.sbin/pw/pw_user.c +++ b/usr.sbin/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) |