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