if (exif_find_record(ImageInfo->d, "FNumber") == NULL) {
/* Convert aperture to F-stop. */
fstop = pow(sqrt(2), ((double)rd.r.num)/((double)rd.r.denom));
- sprintf(label, "f%.1g", fstop);
+ snprintf(label,32, "f%.1g", fstop);
rd.s = strdup(label);
exif_append_data(&ImageInfo->d,
"FNumber",
rec_type = ConvertAnyFormat2(OffsetPtr, ByteCount, format,
ImageInfo->MotorolaOrder,
&rd);
- sprintf(label, "MakerNote%04x", tag);
+ snprintf(label, 32, "MakerNote%04x", tag);
exif_append_data(&ImageInfo->d,
label,
rec_type,
ProcessExifDir(ImageInfoType *ImageInfo, char *DirStart, char *OffsetBase, unsigned ExifLength, char *LastExifRefd)
{
int de;
- int a;
int NumDirEntries;
exif_rec_data_t rd;
- char rec_type;
- char label[32];
+ char rec_type;
+ char label[32];
NumDirEntries = Get16u(DirStart, ImageInfo->MotorolaOrder);
rec_type = ConvertAnyFormat2(ValuePtr, ByteCount, Format,
ImageInfo->MotorolaOrder,
&rd);
- sprintf(label, "0x%04x", Tag);
+ snprintf(label, 32, "0x%04x", Tag);
exif_append_data(&ImageInfo->d,
label,
rec_type,
process_EXIF (ImageInfoType *ImageInfo, char *CharBuf, unsigned int length, char *LastExifRefd)
{
int cc;
- exif_rec_data_t rd;
LastExifRefd = CharBuf;
{ /* Check the EXIF header component */
{
FILE *infile;
int ret;
- char *tmp;
- char **p_argv;
- int p_argc;
infile = fdopen(fd, "rb"); /* Unix ignores 'b', windows needs it. */
int SectionsRead;
char *LastExifRefd=NULL;
int ret;
- int thumbsize=0;
ret = ReadJpegFile(ImageInfo, Sections, &SectionsRead, fd, ReadAll, LastExifRefd);
#if 0