diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2011-12-17 23:46:47 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2011-12-17 23:46:47 +0000 |
| commit | ff24e26e33ed88923ffc1b3d722223befea28276 (patch) | |
| tree | ddc310adfd8c0b58427ea4a0464ba5512f9edb9d | |
| parent | e798ef240207d013e19961d2e4d5918f738997c6 (diff) | |
| download | pw-darwin-ff24e26e33ed88923ffc1b3d722223befea28276.tar.gz pw-darwin-ff24e26e33ed88923ffc1b3d722223befea28276.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.c | 2 |
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) |
