svn commit: r229217 - stable/9/usr.sbin/i2c

Dimitry Andric dim at FreeBSD.org
Sun Jan 1 22:08:53 UTC 2012


Author: dim
Date: Sun Jan  1 22:08:52 2012
New Revision: 229217
URL: http://svn.freebsd.org/changeset/base/229217

Log:
  MFC r228660:
  
  In usr.sbin/i2c/i2c.c, fix a few warnings about format strings not being
  literals.

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

Modified: stable/9/usr.sbin/i2c/i2c.c
==============================================================================
--- stable/9/usr.sbin/i2c/i2c.c	Sun Jan  1 22:06:41 2012	(r229216)
+++ stable/9/usr.sbin/i2c/i2c.c	Sun Jan  1 22:08:52 2012	(r229217)
@@ -360,7 +360,7 @@ err1:
 		fprintf(stderr, "error sending stop condtion\n");
 err2:
 	if (err_msg)
-		fprintf(stderr, err_msg);
+		fprintf(stderr, "%s", err_msg);
 
 	close(fd);
 	return (1);
@@ -453,7 +453,7 @@ err1:
 		fprintf(stderr, "error sending stop condtion\n");
 err2:
 	if (err_msg)
-		fprintf(stderr, err_msg);
+		fprintf(stderr, "%s", err_msg);
 
 	close(fd);
 	return (1);


More information about the svn-src-stable mailing list