[Liblas-commits] r1213 - trunk/apps

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Apr 16 09:36:11 EDT 2009


Author: mloskot
Date: Thu Apr 16 09:36:08 2009
New Revision: 1213
URL: http://liblas.org/changeset/1213

Log:
Use printf(%s, str); instead of printf(str); See http://en.wikipedia.org/wiki/Format_string_vulnerabilities.

Modified:
   trunk/apps/lascommon.c

Modified: trunk/apps/lascommon.c
==============================================================================
--- trunk/apps/lascommon.c	(original)
+++ trunk/apps/lascommon.c	Thu Apr 16 09:36:08 2009
@@ -505,7 +505,11 @@
 #ifdef HAVE_LIBGEOTIFF
     if (pGTIF) GTIFPrint((GTIF*)pGTIF, 0, 0);
 #endif
-    if (bWKT) { fprintf(file, pszWKT);fprintf(file, "\n");}
+    if (bWKT)
+    {
+        fprintf(file, "%s", pszWKT);
+        fprintf(file, "%s", "\n");
+    }
     if (nVLR && !bSkipVLR) {
         
     fprintf(file, "\n---------------------------------------------------------\n");


More information about the Liblas-commits mailing list