[syslinux:master] chain: Just assign the value rather than using memcpy()
syslinux-bot for Gene Cumm
gene.cumm at gmail.com
Sun Aug 1 14:57:26 PDT 2010
Commit-ID: 6ad62265d73432b5379f04f484c9c1d8934f5aa4
Gitweb: http://syslinux.zytor.com/commit/6ad62265d73432b5379f04f484c9c1d8934f5aa4
Author: Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Sun, 1 Aug 2010 12:39:19 -0400
Committer: Gene Cumm <gene.cumm at gmail.com>
CommitDate: Sun, 1 Aug 2010 13:02:35 -0400
chain: Just assign the value rather than using memcpy()
---
com32/modules/chain.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index 1893eb3..15c181c 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -1720,10 +1720,7 @@ int main(int argc, char *argv[])
/* ds:[bp+28] must be 0x0000003f */
regs.ds = (tsize >> 4) + (opt.seg - 2);
/* "Patch" into the extra row */
- if (!memcpy(data[ndata].data + tsize - 4, "\x3f\0\0\0", 4)) {
- error("Failed to patch DRMK\n");
- goto bail;
- }
+ *(int *)(data[ndata].data + tsize - 4) = 0x0000003f;
}
ndata++;
More information about the Syslinux-commits
mailing list