diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-05-06 23:27:51 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-05-06 23:27:51 +0000 |
commit | f3600fcb108ab5e803544eadab8c3fa8eb9f75da (patch) | |
tree | e6182bd9c9b62106232663f582952a029d9dd911 /Build/source/texk/dvipsk/output.c | |
parent | 8e28c1af228ba56dc0380b2689f7516e459cc966 (diff) |
avoid to crash (w32 only)
git-svn-id: svn://tug.org/texlive/trunk@40923 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipsk/output.c')
-rw-r--r-- | Build/source/texk/dvipsk/output.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Build/source/texk/dvipsk/output.c b/Build/source/texk/dvipsk/output.c index ff5931c3b18..fa57daaa1a1 100644 --- a/Build/source/texk/dvipsk/output.c +++ b/Build/source/texk/dvipsk/output.c @@ -104,8 +104,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; } |