unpaper/unpaper-0.3-format-security...

56 lines
2.1 KiB
Diff

diff --git a/src/unpaper.c b/src/unpaper.c
index f967d92..53f55b0 100644
--- a/src/unpaper.c
+++ b/src/unpaper.c
@@ -1,9 +1,9 @@
/* ---------------------------------------------------------------------------
unpaper - written by Jens Gulden 2005-2007 */
-const char* VERSION = "0.3";
+const char VERSION[] = "0.3";
-const char* README =
+const char README[] =
"unpaper is a post-processing tool for scanned sheets of paper, especially for\n"
"book pages that have been scanned from previously created photocopies.\n"
"The main purpose is to make scanned book pages better readable on screen\n"
@@ -29,7 +29,7 @@ const char* README =
"Conversion to PDF can e.g. be achieved with the Linux tools pgm2tiff, tiffcp\n"
"and tiff2pdf.";
-const char* COMPILE =
+const char COMPILE[] =
"gcc -D TIMESTAMP=\"<yyyy-MM-dd HH:mm:ss>\" -lm -O3 -funroll-all-loops -fomit-frame-pointer -ftree-vectorize -o unpaper unpaper.c\n";
/* ------------------------------------------------------------------------ */
@@ -46,17 +46,17 @@ const char* BUILD = TIMESTAMP;
const char* BUILD = NULL;
#endif
-const char* WELCOME =
+const char WELCOME[] =
"unpaper %s - written by Jens Gulden 2005-2007.\n"
"Licensed under the GNU General Public License, this comes with no warranty.\n";
-const char* USAGE =
+const char USAGE[] =
"Usage: unpaper [options] <input-file(s)> <output-file(s)>\n\n"
"Filenames may contain a formatting placeholder starting with '%%' to insert a\n"
"page counter for multi-page processing. E.g.: 'scan%%03d.pbm' to process files\n"
"scan001.pbm, scan002.pbm, scan003.pbm etc.\n";
-const char* OPTIONS =
+const char OPTIONS[] =
"-l --layout single Set default layout options for a sheet:\n"
" |double 'single': One page per sheet.\n"
" |none 'double': Two pages per sheet, landscape\n"
@@ -558,7 +558,7 @@ const char* OPTIONS =
//--help-compile Undocumented.
-const char* HELP =
+const char HELP[] =
"Run 'unpaper --help' for usage information.\n";