Skip to content

Commit

Permalink
cast mtime to long long to avoid 32bit time issues
Browse files Browse the repository at this point in the history
  • Loading branch information
msmeissn committed Nov 9, 2023
1 parent 672d2a8 commit f3c01c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gphoto2/actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ print_file_action (GPParams *p, const char *folder, const char *filename)
if (info.file.fields & GP_FILE_INFO_TYPE)
printf(" FILETYPE=%s", info.file.type);
if (info.file.fields & GP_FILE_INFO_MTIME)
printf(" FILEMTIME=%ld", info.file.mtime);
printf(" FILEMTIME=%lld", (long long)info.file.mtime);
printf("\n");
} else
printf ("FILENAME='%s/%s'\n", folder, filename);
Expand All @@ -406,7 +406,7 @@ print_file_action (GPParams *p, const char *folder, const char *filename)
if (info.file.fields & GP_FILE_INFO_TYPE)
printf(" %s", info.file.type);
if (info.file.fields & GP_FILE_INFO_MTIME)
printf(" %ld", info.file.mtime);
printf(" %lld", (long long)info.file.mtime);
putchar ('\n');
} else
printf("#%-5i %s\n", x+1, filename);
Expand Down

0 comments on commit f3c01c7

Please sign in to comment.