Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 2013 22:28:32 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r259398 - head/sys/dev/ofw
Message-ID:  <201312142228.rBEMSWq2083028@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Sat Dec 14 22:28:32 2013
New Revision: 259398
URL: http://svnweb.freebsd.org/changeset/base/259398

Log:
  Avoid warning about insecure format with clang.

Modified:
  head/sys/dev/ofw/ofw_console.c

Modified: head/sys/dev/ofw/ofw_console.c
==============================================================================
--- head/sys/dev/ofw/ofw_console.c	Sat Dec 14 22:07:40 2013	(r259397)
+++ head/sys/dev/ofw/ofw_console.c	Sat Dec 14 22:28:32 2013	(r259398)
@@ -100,7 +100,7 @@ cn_drvinit(void *unused)
 		    sizeof(output)) == -1)
 			return;
 		if (strlen(output) > 0)
-			tty_makealias(tp, output);
+			tty_makealias(tp, "%s", output);
 	}
 }
 



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