Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Koehn <phi@jhu.edu>2016-01-31 19:57:11 +0300
committerPhilipp Koehn <phi@jhu.edu>2016-01-31 19:57:11 +0300
commit77685d7fd91e8cad384e341e18a567097cbd0adc (patch)
tree5b38c4da07ad3e6f13b99ef46bfdd0d4bc23e93a /biconcor
parent904afd175de51012b77390b038a95e2950e07ef2 (diff)
wrong memory allocation request for document marker
Diffstat (limited to 'biconcor')
-rw-r--r--biconcor/SuffixArray.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/biconcor/SuffixArray.cpp b/biconcor/SuffixArray.cpp
index f98e40ed3..7b9ec9a6d 100644
--- a/biconcor/SuffixArray.cpp
+++ b/biconcor/SuffixArray.cpp
@@ -93,7 +93,7 @@ void SuffixArray::Create(const string& fileName )
CheckAllocation(m_sentenceLength != NULL, "m_sentenceLength");
if (m_useDocument) {
m_document = (INDEX*) calloc( sizeof( INDEX ), m_documentCount );
- m_documentName = (INDEX*) calloc( sizeof( char ), m_documentCount );
+ m_documentName = (INDEX*) calloc( sizeof( INDEX ), m_documentCount );
m_documentNameBuffer = (char*) calloc( sizeof( char ), m_documentNameLength );
CheckAllocation(m_document != NULL, "m_document");
CheckAllocation(m_documentName != NULL, "m_documentName");