diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-10-02 19:25:17 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-10-02 19:25:17 +0200 |
commit | c2ca7be5a751879159f3cb591a64bb9568b79762 (patch) | |
tree | 04e38d4f4a2aad4d789bda0a65b7abb80a3439a2 /xicc/ccss.c | |
parent | 45c152c326d87478fbf41714b4b8e2f7b57a282b (diff) | |
parent | 3db384424bd7398ffbb7a355cab8f15f3add009f (diff) |
Updated version 1.9.1+repack from 'upstream/1.9.1+repack'
with Debian dir 98a996367aa69ae41accf9c6d369f600bc94de80
Diffstat (limited to 'xicc/ccss.c')
-rw-r--r-- | xicc/ccss.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/xicc/ccss.c b/xicc/ccss.c index 75075c1..aae278e 100644 --- a/xicc/ccss.c +++ b/xicc/ccss.c @@ -2,7 +2,9 @@ /* * Argyll Color Correction System * Colorimeter Correction Matrix - * + */ + +/* * Author: Graeme W. Gill * Date: 9/8/2010 * @@ -13,6 +15,7 @@ * see the License2.txt file for licencing details. */ + /* * TTBD: */ @@ -31,7 +34,7 @@ #include "icc.h" #else #include "numsup.h" -#include "conv.h" +#include "sa_conv.h" #endif #include "cgats.h" #include "xspect.h" @@ -201,7 +204,7 @@ char *outname /* Filename to write to */ static int buf_write_ccss( ccss *p, unsigned char **buf, /* Return allocated buffer */ -int *len /* Return length */ +size_t *len /* Return length */ ) { int rv; cgats *ocg; /* CGATS structure */ @@ -231,7 +234,7 @@ int *len /* Return length */ } /* Get the buffer the ccss has been written to */ - if (fp->get_buf(fp, buf, (size_t *)len)) { + if (fp->get_buf(fp, buf, len)) { strcpy(p->err, "cgatsFileMem get_buf failed"); return 2; } @@ -434,7 +437,7 @@ char *inname /* Filename to read from */ static int buf_read_ccss( ccss *p, /* This */ unsigned char *buf, -int len +size_t len ) { int rv; cgatsFile *fp; |