From 17f0828c74d94b1fd3a4674372518703d4da939c Mon Sep 17 00:00:00 2001 From: Francois-Olivier Devaux Date: Mon, 20 Aug 2007 15:26:01 +0000 Subject: [PATCH] Fixed _strnicmp bug --- codec/image_to_j2k.c | 2 +- codec/j2k_to_image.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codec/image_to_j2k.c b/codec/image_to_j2k.c index 44747ee0..75a763f8 100644 --- a/codec/image_to_j2k.c +++ b/codec/image_to_j2k.c @@ -380,7 +380,7 @@ int get_file_format(char *filename) { return -1; ext++; for(i = 0; i < sizeof(format)/sizeof(*format); i++) { - if(_strnicmp(ext, extension[i], 3) == 0) { + if(strnicmp(ext, extension[i], 3) == 0) { return format[i]; } } diff --git a/codec/j2k_to_image.c b/codec/j2k_to_image.c index 18f478ac..e19920c1 100644 --- a/codec/j2k_to_image.c +++ b/codec/j2k_to_image.c @@ -191,7 +191,7 @@ int get_file_format(char *filename) { ext++; if(ext) { for(i = 0; i < sizeof(format)/sizeof(*format); i++) { - if(_strnicmp(ext, extension[i], 3) == 0) { + if(strnicmp(ext, extension[i], 3) == 0) { return format[i]; } }