Mercurial > hg > xemacs-beta
diff src/dgif_lib.c @ 321:19dcec799385 r21-0-58
Import from CVS: tag r21-0-58
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:46:44 +0200 |
parents | 33bdb3d4b97f |
children | 54f7aa390f4f |
line wrap: on
line diff
--- a/src/dgif_lib.c Mon Aug 13 10:46:01 2007 +0200 +++ b/src/dgif_lib.c Mon Aug 13 10:46:44 2007 +0200 @@ -110,7 +110,7 @@ /* The GIF Version number is ignored at this time. Maybe we should do */ /* something more useful with it. */ Buf[GIF_STAMP_LEN] = 0; - if (strncmp(GIF_STAMP, Buf, GIF_VERSION_POS) != 0) { + if (strncmp(GIF_STAMP, (const char *) Buf, GIF_VERSION_POS) != 0) { GifInternError(GifFile, D_GIF_ERR_NOT_GIF_FILE); } @@ -819,10 +819,11 @@ /****************************************************************************** * Image block allocation functions * ******************************************************************************/ -SavedImage *MakeSavedImage(GifFileType *GifFile, SavedImage *CopyFrom) /* * Append an image block to the SavedImages array */ +SavedImage * +MakeSavedImage(GifFileType *GifFile, SavedImage *CopyFrom) { SavedImage *sp; @@ -856,7 +857,7 @@ CopyFrom->ImageDesc.ColorMap->Colors); /* next, the raster */ - sp->RasterBits = (char *)malloc(sizeof(GifPixelType) + sp->RasterBits = (GifPixelType*)malloc(sizeof(GifPixelType) * CopyFrom->ImageDesc.Height * CopyFrom->ImageDesc.Width); memcpy(sp->RasterBits,