]> git.pld-linux.org Git - packages/tesseract.git/commitdiff
- fix format string error auto/th/tesseract-3.02.02-2
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Jul 2013 14:14:11 +0000 (16:14 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Jul 2013 14:14:11 +0000 (16:14 +0200)
- rel 2

format-security.patch [new file with mode: 0644]
tesseract.spec

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..8c85e9c
--- /dev/null
@@ -0,0 +1,11 @@
+--- tesseract-ocr/dict/permdawg.cpp~   2012-09-02 22:08:43.000000000 +0200
++++ tesseract-ocr/dict/permdawg.cpp    2013-07-14 16:06:15.545850330 +0200
+@@ -205,7 +205,7 @@
+           STRING word_str;
+           word->string_and_lengths(&word_str, NULL);
+           word_str += " ";
+-          fprintf(output_ambig_words_file_, word_str.string());
++          fprintf(output_ambig_words_file_, "%s", word_str.string());
+         }
+         WERD_CHOICE *adjusted_word = word;
+         WERD_CHOICE hyphen_tail_word(&getUnicharset());
index 8ddc893938ffc80487d6781be5f1198d019a6db2..fb3628875c000f20f6e5c9eb30e182a0e4c451f2 100644 (file)
@@ -4,12 +4,13 @@ Summary:      Tesseract Open Source OCR Engine
 Summary(pl.UTF-8):     Tesseract - silnik OCR o otwartych źródłach
 Name:          tesseract
 Version:       3.02.02
-Release:       1
+Release:       2
 License:       Apache v2.0
 Group:         Applications/Graphics
 #Source0Download: http://code.google.com/p/tesseract-ocr/downloads/list
 Source0:       http://tesseract-ocr.googlecode.com/files/%{name}-ocr-%{version}.tar.gz
 # Source0-md5: 26adc8154f0e815053816825dde246e6
+Patch0:                format-security.patch
 URL:           http://code.google.com/p/tesseract-ocr/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
@@ -59,6 +60,7 @@ Statyczne biblioteki Tesseracta.
 
 %prep
 %setup -q -n %{name}-ocr
+%patch0 -p1
 
 %build
 %{__libtoolize}
This page took 0.157742 seconds and 4 git commands to generate.