Browse Source

- fixed off-by-one

pull/3/head
Andreas Romeyke 4 years ago
parent
commit
3ce7a906bb
  1. 2
      src/checkit_tiff.c

2
src/checkit_tiff.c

@ -167,7 +167,7 @@ int main (int argc, char * argv[]) {
if (flag_check_directory == FLAGGED) {
/* iterate through all files */
size_t len = strlen( tiff_file_or_dir);
char tiff_dir [ len ];
char tiff_dir [ len+1 ];
strncpy(tiff_dir, tiff_file_or_dir, len);
tiff_dir[ len ] = 0;
DIR *dir;

Loading…
Cancel
Save