summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/utils.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-08-18 22:36:07 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-08-18 22:36:07 +0000
commit327edc933ae08980d1ddfdf5348f969a8b09d692 (patch)
tree286d804f52c10bbc0f40596eaccf5c62845c6bbc /Build/source/texk/web2c/pdftexdir/utils.c
parentc40a155d475889151a0880c43f8c491f62da2f0c (diff)
web2c/lib/texmfmp.c, web2c/pdftexdir/utils.c: sync with the upstream of pdftex
git-svn-id: svn://tug.org/texlive/trunk@38146 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/utils.c')
-rw-r--r--Build/source/texk/web2c/pdftexdir/utils.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/utils.c b/Build/source/texk/web2c/pdftexdir/utils.c
index 43b9ba4b73f..88b8f09e11c 100644
--- a/Build/source/texk/web2c/pdftexdir/utils.c
+++ b/Build/source/texk/web2c/pdftexdir/utils.c
@@ -703,9 +703,6 @@ void unescapehex(poolpointer in)
*/
void printID(strnumber filename)
{
- time_t t;
- size_t size;
- char time_str[32];
md5_state_t state;
md5_byte_t digest[16];
char id[64];
@@ -714,9 +711,8 @@ void printID(strnumber filename)
/* start md5 */
md5_init(&state);
/* get the time */
- t = time(NULL);
- size = strftime(time_str, sizeof(time_str), "%Y%m%dT%H%M%SZ", gmtime(&t));
- md5_append(&state, (const md5_byte_t *) time_str, size);
+ initstarttime();
+ md5_append(&state, (const md5_byte_t *) start_time_str, strlen(start_time_str));
/* get the file name */
if (getcwd(pwd, sizeof(pwd)) == NULL)
pdftex_fail("getcwd() failed (%s), path too long?", strerror(errno));