From 34c485169e5c67457e1eebc2ecc7ed487c447910 Mon Sep 17 00:00:00 2001 From: Francois-Olivier Devaux Date: Fri, 19 Feb 2010 13:37:27 +0000 Subject: [PATCH] Applied changes to jp3d_to_volume.c that didn't pass in previous revision (rev545) --- jp3d/codec/jp3d_to_volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jp3d/codec/jp3d_to_volume.c b/jp3d/codec/jp3d_to_volume.c index caa275bf..4086b20d 100755 --- a/jp3d/codec/jp3d_to_volume.c +++ b/jp3d/codec/jp3d_to_volume.c @@ -197,7 +197,7 @@ int get_file_format(char *filename) { static const char *extension[] = {"pgx", "bin", "j3d", "jp3d", "j2k", "img"}; static const int format[] = { PGX_DFMT, BIN_DFMT, J3D_CFMT, J3D_CFMT, J2K_CFMT, IMG_DFMT}; char * ext = strrchr(filename, '.') + 1; - for(i = 0; i < sizeof(format); i++) { + for(i = 0; i < sizeof(format) / sizeof(format[0]); i++) { if(strnicmp(ext, extension[i], 3) == 0) { return format[i]; } -- 2.30.2