FreeCalypso > hg > tcs211-patches
diff 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 | 
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()
