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);
_______________________________________________
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