[Pvfs2-cvs] commit by pcarns in pvfs2-1/src/apps/admin:
pvfs2-remove-object.c
CVS commit program
cvs at parl.clemson.edu
Tue Dec 9 14:50:13 EST 2008
Update of /projects/cvsroot/pvfs2-1/src/apps/admin
In directory parlweb1:/tmp/cvs-serv5812/src/apps/admin
Modified Files:
pvfs2-remove-object.c
Log Message:
New versions of gcc give warnings about passing untrusted strings directly
into printf style functions.
Index: pvfs2-remove-object.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/apps/admin/pvfs2-remove-object.c,v
diff -p -u -r1.9 -r1.10
--- pvfs2-remove-object.c 20 Nov 2008 01:16:45 -0000 1.9
+++ pvfs2-remove-object.c 9 Dec 2008 19:50:13 -0000 1.10
@@ -142,7 +142,7 @@ static options_t *parse_args(int argc, c
break;
case 'd':
do_dirent:
- snprintf(tmp_opts->dirent_name, PATH_MAX, optarg);
+ snprintf(tmp_opts->dirent_name, PATH_MAX, "%s", optarg);
break;
case 'f':
do_fsid:
More information about the Pvfs2-cvs
mailing list