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)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to