svn commit: r229243 - stable/9/usr.sbin/sade
Dimitry Andric
dim at FreeBSD.org
Sun Jan 1 23:43:45 UTC 2012
Author: dim
Date: Sun Jan 1 23:43:45 2012
New Revision: 229243
URL: http://svn.freebsd.org/changeset/base/229243
Log:
MFC r228682:
In usr.sbin/sade/install.c and usr.sbin/sade/label.c, fix a few warnings
about format strings not being literals.
MFC r228683:
Forgot to add usr.sbin/sade/label.c in the previous commit.
Modified:
stable/9/usr.sbin/sade/install.c
stable/9/usr.sbin/sade/label.c
Directory Properties:
stable/9/usr.sbin/sade/ (props changed)
Modified: stable/9/usr.sbin/sade/install.c
==============================================================================
--- stable/9/usr.sbin/sade/install.c Sun Jan 1 23:41:31 2012 (r229242)
+++ stable/9/usr.sbin/sade/install.c Sun Jan 1 23:43:45 2012 (r229243)
@@ -103,10 +103,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);
}
Modified: stable/9/usr.sbin/sade/label.c
==============================================================================
--- stable/9/usr.sbin/sade/label.c Sun Jan 1 23:41:31 2012 (r229242)
+++ stable/9/usr.sbin/sade/label.c Sun Jan 1 23:43:45 2012 (r229243)
@@ -977,7 +977,7 @@ diskLabel(Device *dev)
}
if (msg) {
if (req) {
- msgConfirm(msg);
+ msgConfirm("%s", msg);
clear_wins();
msg = NULL;
}
More information about the svn-src-stable-9
mailing list