svn commit: r228682 - head/usr.sbin/sade

Dimitry Andric dim at FreeBSD.org
Sun Dec 18 01:13:22 UTC 2011


Author: dim
Date: Sun Dec 18 01:13:21 2011
New Revision: 228682
URL: http://svn.freebsd.org/changeset/base/228682

Log:
  In usr.sbin/sade/install.c and usr.sbin/sade/label.c, fix a few warnings
  about format strings not being literals.
  
  MFC after:	1 week

Modified:
  head/usr.sbin/sade/install.c

Modified: head/usr.sbin/sade/install.c
==============================================================================
--- head/usr.sbin/sade/install.c	Sun Dec 18 01:08:25 2011	(r228681)
+++ head/usr.sbin/sade/install.c	Sun Dec 18 01:13:21 2011	(r228682)
@@ -104,10 +104,10 @@ performNewfs(PartInfo *pi, char *dname, 
 		}
 
 		if (queue == QUEUE_YES) {
-			command_shell_add(pi->mountpoint, buffer);
+			command_shell_add(pi->mountpoint, "%s", buffer);
 			return (0);
 		} else
-			return (vsystem(buffer));
+			return (vsystem("%s", buffer));
 	}
 	return (0);
 }


More information about the svn-src-head mailing list