[jbig2-cvs] rev 240 - trunk
giles@ghostscript.com
giles@ghostscript.com
Wed, 16 Apr 2003 18:44:11 -0700
Author: giles
Date: 2003-04-16 18:44:11 -0700 (Wed, 16 Apr 2003)
New Revision: 240
Modified:
trunk/jbig2dec.c
Log:
strncasecmp() isn't portable. work around until we can provide our own.
Modified: trunk/jbig2dec.c
==============================================================================
--- trunk/jbig2dec.c (original)
+++ trunk/jbig2dec.c Wed Apr 16 18:44:11 2003
@@ -100,7 +100,9 @@
set_output_format(jbig2dec_params_t *params, const char *format)
{
#ifdef HAVE_LIBPNG
- if (!strncasecmp(format, "png", 3)) {
+ /* this should really by strncasecmp()
+ TODO: we need to provide our own for portability */
+ if (!strncmp(format, "png", 3) || !strncmp(format, "PNG", 3)) {
params->output_format=jbig2dec_format_png;
return 0;
}