Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jan 2012 23:33:09 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229237 - stable/9/usr.sbin/pw
Message-ID:  <201201012333.q01NX91M036966@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sun Jan  1 23:33:08 2012
New Revision: 229237
URL: http://svn.freebsd.org/changeset/base/229237

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

Modified:
  stable/9/usr.sbin/pw/pw_user.c
Directory Properties:
  stable/9/usr.sbin/pw/   (props changed)

Modified: stable/9/usr.sbin/pw/pw_user.c
==============================================================================
--- stable/9/usr.sbin/pw/pw_user.c	Sun Jan  1 23:26:49 2012	(r229236)
+++ stable/9/usr.sbin/pw/pw_user.c	Sun Jan  1 23:33:08 2012	(r229237)
@@ -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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201012333.q01NX91M036966>