Browse Source

- simplified code

development
Andreas Romeyke 2 years ago
parent
commit
9d9b2361ce
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/checkit_tiff.c

+ 1
- 2
src/checkit_tiff.c View File

@ -172,8 +172,7 @@ int main (int argc, char * argv[]) {
/* iterate through all files */
size_t len = strlen( tiff_file_or_dir);
char tiff_dir [ len+1 ];
strncpy(tiff_dir, tiff_file_or_dir, len);
tiff_dir[ len ] = 0;
strcpy(tiff_dir, tiff_file_or_dir);
DIR *dir;
/* remove trailing / */
char *dirsuffix = strrchr(tiff_dir, '/');


Loading…
Cancel
Save