[nasm:nasm-2.15.xx] rdflib.c: add back timestamp size to header in library creation.

nasm-bot for sezero sezero at users.sourceforge.net
Mon Jul 6 13:21:04 PDT 2020


Commit-ID:  741967033eb8022b9b9b82f6b2ee3c90d670627e
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=741967033eb8022b9b9b82f6b2ee3c90d670627e
Author:     sezero <sezero at users.sourceforge.net>
AuthorDate: Fri, 4 Oct 2019 23:37:10 +0300
Committer:  H. Peter Anvin (Intel) <hpa at zytor.com>
CommitDate: Mon, 6 Jul 2020 13:17:42 -0700

rdflib.c: add back timestamp size to header in library creation.

Commit 8dc965347 removed writing of the timestamp size to library
header. (Accidentally, I guess??) The attached patch adds it back.

Signed-off-by: H. Peter Anvin (Intel) <hpa at zytor.com>


---
 rdoff/rdflib.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rdoff/rdflib.c b/rdoff/rdflib.c
index d363b3e5..ab03e0b8 100644
--- a/rdoff/rdflib.c
+++ b/rdoff/rdflib.c
@@ -181,6 +181,8 @@ int main(int argc, char **argv)
         nasm_write(sig_modname, strlen(sig_modname) + 1, fp);
         nasm_write(rdl_signature, strlen(rdl_signature), fp);
 	t = time(NULL);
+        l = sizeof(t);
+        fwriteint32_t(l, fp);
         fwriteint32_t(t, fp);
         fclose(fp);
         break;


More information about the Nasm-commits mailing list