about summary refs log tree commit diff
path: root/converter
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-09-26 15:40:06 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-09-26 15:40:06 +0000
commit7f8d6caa5a8408c6e208fb740eeb5504c99ace6e (patch)
tree2639540e2dad6efed07c29fb0fd228ff601d2dda /converter
parentea8f804eeac43f841a205da9f5623765eeefb2f6 (diff)
downloadnetpbm-mirror-7f8d6caa5a8408c6e208fb740eeb5504c99ace6e.tar.gz
netpbm-mirror-7f8d6caa5a8408c6e208fb740eeb5504c99ace6e.tar.xz
netpbm-mirror-7f8d6caa5a8408c6e208fb740eeb5504c99ace6e.zip
Release 10.67.06
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2289 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r--converter/other/cameratopam/identify.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/converter/other/cameratopam/identify.c b/converter/other/cameratopam/identify.c
index b99496b7..f0b21ce5 100644
--- a/converter/other/cameratopam/identify.c
+++ b/converter/other/cameratopam/identify.c
@@ -238,15 +238,8 @@ adobe_coeff()
     for (i=0; i < sizeof table / sizeof *table; i++)
         if (!strncmp (name, table[i].prefix, strlen(table[i].prefix))) {
             unsigned int j;
-            /* I have no idea what this code is supposed to do, but the way I
-               found it, it was setting the first 12 elements, instead of 4,
-               of cm[0].  But cm[0] has only 3 elements!  So I just changed it
-               to use the first 3 "trans" values and ignore the rest.  I
-               don't know if that produces useful results, but at least it
-               cures the array bounds violation.  -Bryan 2010.04.09.
-            */
-            for (j=0; j < 3; j++)
-                cm[0][j] = table[i].trans[j];
+            for (j=0; j < 12; j++)
+                cm[j/4][j%4] = table[i].trans[j];
             dng_coeff (cc, cm, xyz);
             break;
         }