FreeCalypso > hg > tcs211-patches
comparison tool/patchhook.c @ 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 | 87e9f30f5f86 |
children |
comparison
equal
deleted
inserted
replaced
7:5a6f608173c4 | 8:04fd47d382c7 |
---|---|
16 extern struct ar_hdr ar_hdr; | 16 extern struct ar_hdr ar_hdr; |
17 | 17 |
18 update_ar_timestamp() | 18 update_ar_timestamp() |
19 { | 19 { |
20 time_t curtime; | 20 time_t curtime; |
21 char tmpbuf[13]; | |
21 | 22 |
22 time(&curtime); | 23 time(&curtime); |
23 sprintf(ar_hdr.ar_date, "%-12lu", (u_long) curtime); | 24 sprintf(tmpbuf, "%-12lu", (u_long) curtime); |
25 bcopy(tmpbuf, ar_hdr.ar_date, 12); | |
24 } | 26 } |
25 | 27 |
26 patch_hook() | 28 patch_hook() |
27 { | 29 { |
28 struct patch_module_desc *pmd; | 30 struct patch_module_desc *pmd; |