FreeCalypso > hg > tcs211-patches
changeset 8:04fd47d382c7
ti-libpatch: ar member timestamp patching fixed
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Sat, 06 Jun 2015 05:24:23 +0000 |
parents | 5a6f608173c4 |
children | 73e647918297 |
files | tool/patchhook.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tool/patchhook.c Sat Jun 06 05:16:19 2015 +0000 +++ b/tool/patchhook.c Sat Jun 06 05:24:23 2015 +0000 @@ -18,9 +18,11 @@ update_ar_timestamp() { time_t curtime; + char tmpbuf[13]; time(&curtime); - sprintf(ar_hdr.ar_date, "%-12lu", (u_long) curtime); + sprintf(tmpbuf, "%-12lu", (u_long) curtime); + bcopy(tmpbuf, ar_hdr.ar_date, 12); } patch_hook()