[Liblas-commits] r1171 - trunk/apps
liblas-commits at liblas.org
liblas-commits at liblas.org
Sat Apr 4 20:00:05 EDT 2009
Author: mloskot
Date: Sat Apr 4 20:00:05 2009
New Revision: 1171
URL: http://liblas.org/changeset/1171
Log:
las2txt.c: Use explicit format string for fprintf, but not dirty tricks.
Modified:
trunk/apps/las2txt.c
Modified: trunk/apps/las2txt.c
==============================================================================
--- trunk/apps/las2txt.c (original)
+++ trunk/apps/las2txt.c Sat Apr 4 20:00:05 2009
@@ -491,19 +491,19 @@
{
/* // the x coordinate */
case 'x':
- lidardouble2string(printstring, LASPoint_GetX(p)); fprintf(file_out, printstring);
+ lidardouble2string(printstring, LASPoint_GetX(p)); fprintf(file_out, "%s", printstring);
break;
/* // the y coordinate */
case 'y':
- lidardouble2string(printstring, LASPoint_GetY(p)); fprintf(file_out, printstring);
+ lidardouble2string(printstring, LASPoint_GetY(p)); fprintf(file_out, "%s", printstring);
break;
/* // the z coordinate */
case 'z':
- lidardouble2string(printstring, LASPoint_GetZ(p)); fprintf(file_out, printstring);
+ lidardouble2string(printstring, LASPoint_GetZ(p)); fprintf(file_out, "%s", printstring);
break;
/* // the gps-time */
case 't':
- lidardouble2string(printstring,LASPoint_GetTime(p)); fprintf(file_out, printstring);
+ lidardouble2string(printstring,LASPoint_GetTime(p)); fprintf(file_out, "%s", printstring);
break;
/* // the intensity */
case 'i':
More information about the Liblas-commits
mailing list