Date: Fri, 16 Dec 2011 16:07:39 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r228586 - head/libexec/pppoed Message-ID: <201112161607.pBGG7dGs015345@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Fri Dec 16 16:07:39 2011 New Revision: 228586 URL: http://svn.freebsd.org/changeset/base/228586 Log: In libexec/pppoed/pppoed.c, use the correct printf length modifier for a size_t. MFC after: 1 week Modified: head/libexec/pppoed/pppoed.c Modified: head/libexec/pppoed/pppoed.c ============================================================================== --- head/libexec/pppoed/pppoed.c Fri Dec 16 15:58:38 2011 (r228585) +++ head/libexec/pppoed/pppoed.c Fri Dec 16 16:07:39 2011 (r228586) @@ -570,8 +570,8 @@ main(int argc, char *argv[]) } exec = (char *)alloca(sizeof DEFAULT_EXEC_PREFIX + strlen(label)); if (exec == NULL) { - fprintf(stderr, "%s: Cannot allocate %d bytes\n", prog, - (int)(sizeof DEFAULT_EXEC_PREFIX) + strlen(label)); + fprintf(stderr, "%s: Cannot allocate %zu bytes\n", prog, + sizeof DEFAULT_EXEC_PREFIX + strlen(label)); return EX_OSERR; } strcpy(exec, DEFAULT_EXEC_PREFIX);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112161607.pBGG7dGs015345>