Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2011 19:34:25 +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: r229139 - stable/9/libexec/pppoed
Message-ID:  <201112311934.pBVJYPeA079361@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec 31 19:34:25 2011
New Revision: 229139
URL: http://svn.freebsd.org/changeset/base/229139

Log:
  MFC r228586:
  
  In libexec/pppoed/pppoed.c, use the correct printf length modifier for a
  size_t.

Modified:
  stable/9/libexec/pppoed/pppoed.c
Directory Properties:
  stable/9/libexec/pppoed/   (props changed)

Modified: stable/9/libexec/pppoed/pppoed.c
==============================================================================
--- stable/9/libexec/pppoed/pppoed.c	Sat Dec 31 19:28:54 2011	(r229138)
+++ stable/9/libexec/pppoed/pppoed.c	Sat Dec 31 19:34:25 2011	(r229139)
@@ -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?201112311934.pBVJYPeA079361>