summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine ELIAS <antoine.elias@scilab-enterprises.com>2016-11-10 08:37:19 +0100
committerAntoine ELIAS <antoine.elias@scilab-enterprises.com>2016-11-10 08:37:19 +0100
commite91a355073e2e8c66342f42275c3a5de52d0e34c (patch)
treee51d3c26dd7880f6797fbff4a28b8f543522cbcf
parent129acd88468f9ecb4dc0cde11c17e992cd21f35f (diff)
downloadscilab-e91a355073e2e8c66342f42275c3a5de52d0e34c.zip
scilab-e91a355073e2e8c66342f42275c3a5de52d0e34c.tar.gz
utf: hdf5 2
Change-Id: Id5dfda21cecacb212a681ac2617204c162ca1c7e
-rw-r--r--scilab/modules/hdf5/sci_gateway/cpp/sci_hdf5_listvar_v3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scilab/modules/hdf5/sci_gateway/cpp/sci_hdf5_listvar_v3.cpp b/scilab/modules/hdf5/sci_gateway/cpp/sci_hdf5_listvar_v3.cpp
index 0773e8a9..45a8cf4 100644
--- a/scilab/modules/hdf5/sci_gateway/cpp/sci_hdf5_listvar_v3.cpp
+++ b/scilab/modules/hdf5/sci_gateway/cpp/sci_hdf5_listvar_v3.cpp
@@ -458,7 +458,7 @@ static bool read_string(int dataset, VarInfo6& info)
458 458
459 for (int i = 0; i < size; i++) 459 for (int i = 0; i < size; i++)
460 { 460 {
461 info.size += (int)strlen(str[i]) * sizeof(wchar_t); 461 info.size += (int)strlen(str[i]) * sizeof(char);
462 } 462 }
463 463
464 freeStringMatrix(dataset, str.data()); 464 freeStringMatrix(dataset, str.data());