[Liblas-commits] hg: whitespace normalization
liblas-commits at liblas.org
liblas-commits at liblas.org
Tue Apr 26 13:00:35 EDT 2011
details: http://hg.liblas.orghg/rev/76a43764654c
changeset: 2930:76a43764654c
user: Howard Butler <hobu.inc at gmail.com>
date: Tue Apr 26 12:00:13 2011 -0500
description:
whitespace normalization
Subject: hg: make sure last char is null
details: http://hg.liblas.orghg/rev/89021b2ceb00
changeset: 2931:89021b2ceb00
user: Howard Butler <hobu.inc at gmail.com>
date: Tue Apr 26 12:00:26 2011 -0500
description:
make sure last char is null
diffstat:
apps/las2oci.cpp | 3 ++-
include/liblas/bounds.hpp | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 8bdd8c592d18 -r 89021b2ceb00 apps/las2oci.cpp
--- a/apps/las2oci.cpp Fri Apr 22 12:40:10 2011 -0500
+++ b/apps/las2oci.cpp Tue Apr 26 12:00:26 2011 -0500
@@ -550,8 +550,9 @@
OCILobLocator* boundary_locator ;
if (bHaveSchemaOverride)
{
- char* schema = (char*) malloc(point_schema_override.size() * sizeof(char));
+ char* schema = (char*) malloc(point_schema_override.size() * sizeof(char) + 1);
strncpy(schema, point_schema_override.c_str(), point_schema_override.size());
+ schema[point_schema_override.size()] = '\0';
statement->WriteCLob( &schema_locator, schema );
statement->Bind(&schema_locator);
}
diff -r 8bdd8c592d18 -r 89021b2ceb00 include/liblas/bounds.hpp
--- a/include/liblas/bounds.hpp Fri Apr 22 12:40:10 2011 -0500
+++ b/include/liblas/bounds.hpp Tue Apr 26 12:00:26 2011 -0500
@@ -68,7 +68,7 @@
T minimum;
T maximum;
- typedef T value_type;
+ typedef T value_type;
Range(T mmin=(std::numeric_limits<T>::max)(), T mmax=(std::numeric_limits<T>::min)())
: minimum(mmin), maximum(mmax) {}
More information about the Liblas-commits
mailing list