Compare commits

...

3 Commits

Author SHA1 Message Date
François Andriot eb8f32b893 Fix FTBFS due to invalid pointer in iconv function
1 month ago
Slávek Banko 29f338fe21
Set a real data type used for FreeArray2D.
1 month ago
Slávek Banko 512be3d17b
Add missing function prototype.
1 month ago

@ -48,6 +48,9 @@
#define RST0 0xD0 /* RST0 marker code */ #define RST0 0xD0 /* RST0 marker code */
/* defined in util.c */
void FixHuffTbl(HuffmanTable *);
static long getBuffer; /* current bit-extraction buffer */ static long getBuffer; /* current bit-extraction buffer */
static int bitsLeft; /* # of unused bits in it */ static int bitsLeft; /* # of unused bits in it */

@ -48,7 +48,7 @@
* input and output file pointers * input and output file pointers
*/ */
FILE *inFile, *outFile; FILE *inFile, *outFile;
void FreeArray2D(char **); void FreeArray2D(MCU *);
void WritePmHeader(DecompressInfo dcInfo); void WritePmHeader(DecompressInfo dcInfo);

@ -44,7 +44,7 @@
#include "mcu.h" #include "mcu.h"
#include "proto.h" #include "proto.h"
void FreeArray2D(char **); void FreeArray2D(MCU *);
void FixHuffTbl(HuffmanTable *); void FixHuffTbl(HuffmanTable *);
unsigned int bitMask[] = { 0xffffffff, 0x7fffffff, 0x3fffffff, 0x1fffffff, unsigned int bitMask[] = { 0xffffffff, 0x7fffffff, 0x3fffffff, 0x1fffffff,
@ -293,7 +293,7 @@ FixHuffTbl (htbl)
*/ */
void void
FreeArray2D(arrayPtr) FreeArray2D(arrayPtr)
char **arrayPtr; MCU *arrayPtr;
{ {
free(arrayPtr[0]); free(arrayPtr[0]);
free(arrayPtr); free(arrayPtr);

@ -132,7 +132,7 @@ xcfString(uint32_t ptr,uint32_t *after)
else else
while(1) { while(1) {
char *buffer = xcfmalloc(targetsize) ; char *buffer = xcfmalloc(targetsize) ;
const char *inbuf = utf8master ; char *inbuf = utf8master ;
char *outbuf = buffer ; char *outbuf = buffer ;
size_t incount = length ; size_t incount = length ;
size_t outcount = targetsize ; size_t outcount = targetsize ;

Loading…
Cancel
Save