Stefan Weil
6b2a0901c6
viewer: Fix some compiler warnings (-Wstringop-truncation) ( #1399 )
...
gcc warnings:
viewer/scrollview.cpp:72:10: 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]
viewer/scrollview.cpp:118:14: warning:
‘char* strncpy(char*, const char*, size_t)’ specified bound depends on
the length of the source argument [-Wstringop-overflow=]
viewer/scrollview.cpp:746:10: 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]
viewer/scrollview.cpp:830:10: 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]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-03-18 08:33:14 +01:00
Stefan Weil
ba95a686aa
Use lept_free to free memory allocated by Leptonica
...
This fixes problems on Windows when Tesseract and Leptonica use different
C runtime libraries.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-07-16 08:34:18 +02:00
Justin Hotchkiss Palermo
f057938069
fix filenames in comments
2017-07-02 17:35:47 -04:00
Raf Schietekat
3983d2f76a
Reviewed uses of reinterpret_cast
2017-05-11 01:58:40 +02:00
Ray Smith
53003f9074
Formatting changes from clang_tidy on latest pull
2016-11-30 15:44:25 -08:00
Ray Smith
5913d7344f
Added missing license headers
2016-11-18 15:53:11 -08:00
Stefan Weil
8a04050df3
Fix compiler warning (signed / unsigned mismatch)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-18 07:38:37 +01:00
Stefan Weil
053403ecdb
viewer: Fix typos in comments
...
All of them were found by codespell.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-11-04 21:58:42 +01:00
theraysmith@gmail.com
3a5f699013
Applied patch to refix issue 331
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1064 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-04-23 23:12:53 +00:00
theraysmith@gmail.com
99e1f05952
Fixed bugs in scrollview and upgraded piccolo to 3.0
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1026 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-01-29 02:24:32 +00:00
theraysmith@gmail.com
d11dc049e3
Fixed a lot of compiler/clang warnings
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1015 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-01-25 02:28:51 +00:00
theraysmith@gmail.com
59d244b06e
More fixes for GRAPHICS_DISABLED from Zdenko and Ray
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@757 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2012-09-22 00:59:31 +00:00
zdenop@gmail.com
5958f01f5f
fix doxygen warnings
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@715 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2012-03-30 15:42:06 +00:00
theraysmith@gmail.com
e0d735b122
Remaining misc changes for 3.02
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@658 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2012-02-02 03:14:43 +00:00
zdenop@gmail.com
da41b96f7f
removed check for libtiff - leptonica is required; cleanup #ifdef/#ifndef HAVE_LIBLEPT
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@624 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2011-08-30 06:34:41 +00:00
theraysmith
f4c46b64a9
Various fixes, including memory leak in fixspace, font labels on output, removed some annoying debug output, fixes to initialization of parameters, general cleanup, and added Hindi
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@574 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2011-03-21 21:49:13 +00:00
zdenop@gmail.com
4523ce9f7d
3.01 code from http://github.com/jimregan/tesseract-ocr with addaptions related to Linux and Windows (VC2008) compile process
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@526 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2010-11-23 18:34:14 +00:00
joregan
f2506871f9
move include of config_auto.h to not conflict with local types. Not finished
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@490 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2010-09-30 15:53:40 +00:00
joregan
a18816f839
partial merge of doxygen branch (stuff without conflicts, basically)
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@441 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2010-07-27 13:23:23 +00:00
joregan
cd96d8ede5
more warnings
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@434 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2010-07-21 18:11:00 +00:00
joregan
76706552ff
/NODEFAULTLIB:library
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@433 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2010-07-21 15:25:59 +00:00
joregan
5c8ad7ee72
add config_auto.h anywhere #ifndef GRAPHICS_DISABLED is used
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@384 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2010-05-28 12:03:45 +00:00
joregan
b3b799c87a
fix issue 301
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@356 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2010-05-26 07:58:42 +00:00
joregan
289db34827
fix issue 303
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@355 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2010-05-26 07:54:34 +00:00
theraysmith
208f24ea04
Updating viewer code to latest
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@337 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2010-05-19 21:19:00 +00:00
theraysmith
4cf922dd1c
Changes to viewer for 3.00
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@303 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2009-07-11 02:44:48 +00:00
theraysmith
6242423e10
Merged viewer with current code
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@252 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2009-06-03 19:08:12 +00:00
theraysmith
bea5e04b76
Fixed compilation with GRAPHICS_DISABLED
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@250 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2009-06-03 17:24:08 +00:00
theraysmith
ddfabca4d5
Fixed compilatation problems, issue 142 and others
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@203 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2008-12-24 00:58:55 +00:00
theraysmith
5c45dc15b1
Fixed name collision with jpeg library
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@165 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2008-04-22 00:44:56 +00:00
theraysmith
1a23b25eeb
Updated graphics output for new java-based display
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@149 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2008-02-01 00:50:56 +00:00