svn commit: r228673 - head/usr.sbin/pw

Dimitry Andric dim at FreeBSD.org
Sat Dec 17 23:46:47 UTC 2011


Author: dim
Date: Sat Dec 17 23:46:47 2011
New Revision: 228673
URL: http://svn.freebsd.org/changeset/base/228673

Log:
  In usr.sbin/pw/pw_user.c, use the correct printf length modifier for a
  ptrdiff_t.
  
  MFC after:	1 week

Modified:
  head/usr.sbin/pw/pw_user.c

Modified: head/usr.sbin/pw/pw_user.c
==============================================================================
--- head/usr.sbin/pw/pw_user.c	Sat Dec 17 23:43:40 2011	(r228672)
+++ head/usr.sbin/pw/pw_user.c	Sat Dec 17 23:46:47 2011	(r228673)
@@ -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)


More information about the svn-src-all mailing list