[Pvfs2-cvs] commit by pcarns in pvfs2-1/src/common/misc: errno-mapping.c

CVS commit program cvs at parl.clemson.edu
Tue Dec 9 14:50:14 EST 2008


Update of /projects/cvsroot/pvfs2-1/src/common/misc
In directory parlweb1:/tmp/cvs-serv5812/src/common/misc

Modified Files:
	errno-mapping.c 
Log Message:
New versions of gcc give warnings about passing untrusted strings directly
into printf style functions.


Index: errno-mapping.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/common/misc/errno-mapping.c,v
diff -p -u -r1.16 -r1.17
--- errno-mapping.c	26 Mar 2007 18:26:35 -0000	1.16
+++ errno-mapping.c	9 Dec 2008 19:50:14 -0000	1.17
@@ -29,7 +29,7 @@ int PVFS_strerror_r(int errnum, char *bu
 
     if (IS_PVFS_NON_ERRNO_ERROR(-errnum))
     {
-        snprintf(buf, limit, PINT_non_errno_strerror_mapping[tmp]);
+        snprintf(buf, limit, "%s", PINT_non_errno_strerror_mapping[tmp]);
     }
     else
     {



More information about the Pvfs2-cvs mailing list