diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-05-06 23:34:23 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-05-06 23:34:23 +0000 |
commit | 5e7ae95ec8eb655217899da5a7704ebf1a0603fc (patch) | |
tree | 31774308adefbb9167736f6a6c64ebf4295bd315 /Build/source/texk/dvipdfm-x/pdffont.c | |
parent | f3600fcb108ab5e803544eadab8c3fa8eb9f75da (diff) |
avoid to crash (w32 only)
git-svn-id: svn://tug.org/texlive/trunk@40924 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdffont.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdffont.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdffont.c b/Build/source/texk/dvipdfm-x/pdffont.c index 7c8caca3886..b43709677bb 100644 --- a/Build/source/texk/dvipdfm-x/pdffont.c +++ b/Build/source/texk/dvipdfm-x/pdffont.c @@ -107,8 +107,13 @@ get_unique_time_if_given(void) if (source_date_epoch) { errno = 0; epoch = strtoll(source_date_epoch, &endptr, 10); - if (!(epoch < 0 || *endptr != '\0' || errno != 0)) + if (!(epoch < 0 || *endptr != '\0' || errno != 0)) { ret = (time_t) epoch; +#if defined(_MSC_VER) + if (ret > 32535291599ULL) + ret = 32535291599ULL; +#endif + } } return ret; } |