Browse Source

- fixed size warnings

development
Andreas Romeyke 2 years ago
parent
commit
53dbeb5f6d
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      src/helper/check_helper.c
  2. +1
    -1
      src/ifdrules/check_all_geotiff_tags.c

+ 2
- 2
src/helper/check_helper.c View File

@ -29,8 +29,8 @@ char * secstrcat (char * dest, const char * src, size_t * maxsize_p) {
}
if (NULL == src) {
} else {
int destsize = strnlen(dest, maxsize);
int srclen = strnlen(src, maxsize);
size_t destsize = strnlen(dest, maxsize);
size_t srclen = strnlen(src, maxsize);
if (destsize+srclen < maxsize-1) {
strncat( dest, src, srclen);
} else {


+ 1
- 1
src/ifdrules/check_all_geotiff_tags.c View File

@ -102,7 +102,7 @@ ret_t check_all_geotiff_tags(ctiff_t * ctif) {
}
/* TODO: check the rest of the GeoKeyTag, therefore we ignore the first 4 values */
for (int i=4; i< count; i++) {
for (uint32 i=4; i< count; i++) {
#ifdef DEBUG
uint16 pval = *p;
printf("SHORTOFFSET (tag=%i): v[%i]=%u p[%i]=0x%04x\n", tag, i,v[i],i,pval);


Loading…
Cancel
Save