tesseract/wordrec
Stefan Weil c222145c38 wordrec: Fix compiler warning (-Wstringop-truncation) (#1398)
gcc warning:
wordrec/language_model.cpp:959:16: warning:
 ‘char* strncpy(char*, const char*, size_t)’ output truncated before
 terminating nul copying as many bytes from a string as its length
 [-Wstringop-truncation]

memcpy could also be a little bit faster than strncpy.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-03-18 08:03:23 +01:00
..
associate.cpp Missing from 25d0968 2015-05-13 09:05:08 -07:00
associate.h Result of clang tidy on recent merge 2016-11-07 10:46:33 -08:00
chop.cpp Use POSIX data types and macros (#878) 2018-03-13 21:36:30 +01:00
chop.h Major refactor of beam search, elimination of dead code, misc bug fixes, updates to Makefile.am, Changelog etc. 2013-09-23 15:26:50 +00:00
chopper.cpp Use POSIX data types and macros (#878) 2018-03-13 21:36:30 +01:00
chopper.h Use POSIX data types and macros (#878) 2018-03-13 21:36:30 +01:00
drawfx.cpp fix build with -DGRAPHICS_DISABLED 2014-01-11 23:08:54 +00:00
drawfx.h remove unused code (Windows related) 2013-07-08 18:21:10 +00:00
findseam.cpp Use POSIX data types and macros (#878) 2018-03-13 21:36:30 +01:00
findseam.h Fixed issue 1056 2014-01-10 17:24:07 +00:00
gradechop.cpp fix filenames in comments 2017-07-02 17:35:47 -04:00
gradechop.h Major refactor to improve speed on difficut images, especially when running 2015-05-12 14:59:14 -07:00
language_model.cpp wordrec: Fix compiler warning (-Wstringop-truncation) (#1398) 2018-03-18 08:03:23 +01:00
language_model.h Reduce number of new / delete operations for class LanguageModel 2017-05-19 18:31:37 +02:00
lm_consistency.cpp Use POSIX data types and macros (#878) 2018-03-13 21:36:30 +01:00
lm_consistency.h Use POSIX data types and macros (#878) 2018-03-13 21:36:30 +01:00
lm_pain_points.cpp Fixes from pull of cleanups: clang tidied, reviewed, fixed new bugs, undeleted needed code. Probably breaks the build, due to some inclusion of changes in utf8/32 conversion 2017-07-14 09:30:14 -07:00
lm_pain_points.h Major refactor of beam search, elimination of dead code, misc bug fixes, updates to Makefile.am, Changelog etc. 2013-09-23 15:26:50 +00:00
lm_state.cpp Remove extra semicolons 2017-07-15 12:40:34 +02:00
lm_state.h Remove extra semicolons 2017-07-15 12:40:34 +02:00
Makefile.am Remove macro USE_STD_NAMESPACE (#1360) 2018-03-04 14:43:28 +01:00
measure.h Result of clang tidy on recent merge 2016-11-07 10:46:33 -08:00
outlines.cpp Use POSIX data types and macros (#878) 2018-03-13 21:36:30 +01:00
outlines.h 3.01 code from http://github.com/jimregan/tesseract-ocr with addaptions related to Linux and Windows (VC2008) compile process 2010-11-23 18:34:14 +00:00
params_model.cpp Added extra Init that takes a memory buffer or a filereader function pointer to enable read of traineddata from memory or foreign file systems. Updated existing readers to use TFile API instead of FILE. This does not yet add big-endian capability to LSTM, but it is very easy from here. 2017-04-27 15:48:23 -07:00
params_model.h Added extra Init that takes a memory buffer or a filereader function pointer to enable read of traineddata from memory or foreign file systems. Updated existing readers to use TFile API instead of FILE. This does not yet add big-endian capability to LSTM, but it is very easy from here. 2017-04-27 15:48:23 -07:00
pieces.cpp Use POSIX data types and macros (#878) 2018-03-13 21:36:30 +01:00
plotedges.cpp fix filenames in comments 2017-07-02 17:35:47 -04:00
plotedges.h Major refactor to improve speed on difficut images, especially when running 2015-05-12 14:59:14 -07:00
render.cpp fix filenames in comments 2017-07-02 17:35:47 -04:00
render.h 3.01 code from http://github.com/jimregan/tesseract-ocr with addaptions related to Linux and Windows (VC2008) compile process 2010-11-23 18:34:14 +00:00
segsearch.cpp Use POSIX data types and macros (#878) 2018-03-13 21:36:30 +01:00
tface.cpp Use POSIX data types and macros (#878) 2018-03-13 21:36:30 +01:00
wordclass.cpp fix filenames in comments 2017-07-02 17:35:47 -04:00
wordrec.cpp Add missing spaces in help text 2017-08-23 19:12:41 +02:00
wordrec.h Use POSIX data types and macros (#878) 2018-03-13 21:36:30 +01:00