From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 26 Oct 2007 18:51:32 -0000 Subject: [Cluster-devel] cluster/dlm/tool main.c Message-ID: <20071026185132.3490.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Changes by: rmccabe at sourceware.org 2007-10-26 18:51:31 Modified files: dlm/tool : main.c Log message: Fix format string bug Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/tool/main.c.diff?cvsroot=cluster&r1=1.10&r2=1.11 --- cluster/dlm/tool/main.c 2007/10/17 19:11:30 1.10 +++ cluster/dlm/tool/main.c 2007/10/26 18:51:31 1.11 @@ -74,7 +74,7 @@ switch (optchar) { case 'm': memset(modebuf, 0, sizeof(modebuf)); - snprintf(modebuf, 8, optarg); + snprintf(modebuf, 8, "%s", optarg); sscanf(modebuf, "%o", &create_mode); break;