about summary refs log tree commit diff
path: root/converter/other/cameratopam/identify.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2020-06-27 17:03:16 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2020-06-27 17:03:16 +0000
commit5d96d3c0c22088d20528fb0f0b126d175ec8a09f (patch)
treea2f504de6f6f9865e8e16d9a2a6f56fcb1c67945 /converter/other/cameratopam/identify.c
parent425de32af6e224afeabeda763c20ec944c3b029c (diff)
downloadnetpbm-mirror-5d96d3c0c22088d20528fb0f0b126d175ec8a09f.tar.gz
netpbm-mirror-5d96d3c0c22088d20528fb0f0b126d175ec8a09f.tar.xz
netpbm-mirror-5d96d3c0c22088d20528fb0f0b126d175ec8a09f.zip
Release 10.73.32
git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@3869 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/cameratopam/identify.c')
-rw-r--r--converter/other/cameratopam/identify.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/converter/other/cameratopam/identify.c b/converter/other/cameratopam/identify.c
index 02208be6..39a9507e 100644
--- a/converter/other/cameratopam/identify.c
+++ b/converter/other/cameratopam/identify.c
@@ -233,7 +233,7 @@ adobeCoeff(const char * const make,
     double cc[4][4];
     double cm[4][3];
     double xyz[] = { 1,1,1 };
-    char name[130];
+    const char * name;
     unsigned int i;
 
     /* Make an identity matrix (1's on the diagonal) */
@@ -242,7 +242,7 @@ adobeCoeff(const char * const make,
         for (j = 0; j < 4; ++j)
             cc[i][j] = (i == j);
     }
-    sprintf (name, "%s %s", make, model);
+    pm_asprintf(&name, "%s %s", make, model);
 
     for (i = 0; i < ARRAY_SIZE(table); ++i) {
         const struct CoeffTableEntry * const entryP = &table[i];
@@ -256,6 +256,7 @@ adobeCoeff(const char * const make,
             break;
         }
     }
+    pm_strfree(name);
 }