summaryrefslogtreecommitdiff
path: root/graphics/ocrad/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-10-16 20:17:49 +0000
committerwiz <wiz@pkgsrc.org>2005-10-16 20:17:49 +0000
commit78c372f8a79d461d0f2823527ca21f4dec2096e5 (patch)
tree14e27b3c7b81e7133e9de1bf21f1dd704026fb98 /graphics/ocrad/patches
parentec15a4174352d9a65385cf3102fb1ae305ecb4bf (diff)
downloadpkgsrc-78c372f8a79d461d0f2823527ca21f4dec2096e5.tar.gz
Initial import of ocrad-0.13:
GNU Ocrad is an OCR (Optical Character Recognition) program based on a feature extraction method. It reads a bitmap image in pbm or pgm formats and produces text in byte (8-bit) or UTF-8 formats. Ocrad includes a layout analyser able to separate the columns or blocks of text normally found on printed pages.
Diffstat (limited to 'graphics/ocrad/patches')
-rw-r--r--graphics/ocrad/patches/patch-aa13
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/ocrad/patches/patch-aa b/graphics/ocrad/patches/patch-aa
new file mode 100644
index 00000000000..885cad79eb8
--- /dev/null
+++ b/graphics/ocrad/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/10/16 20:17:49 wiz Exp $
+
+--- main.cc.orig 2005-10-10 19:04:24.000000000 +0200
++++ main.cc
+@@ -198,7 +198,7 @@ int process_file( FILE *infile, const ch
+ void Ocrad::internal_error( const char * msg ) throw()
+ {
+ char buf[80];
+- std::snprintf( buf, sizeof( buf ), "internal error: %s.\n", msg );
++ snprintf( buf, sizeof( buf ), "internal error: %s.\n", msg );
+ show_error( buf );
+ exit( 3 );
+ }