[syslinux:master] chain.c: minor fixes

syslinux-bot for Michal Soltys soltys at ziu.info
Mon Mar 26 15:03:03 PDT 2012


Commit-ID:  4c9562d926ca31e767ae7f232f496259d83ec376
Gitweb:     http://www.syslinux.org/commit/4c9562d926ca31e767ae7f232f496259d83ec376
Author:     Michal Soltys <soltys at ziu.info>
AuthorDate: Sat, 14 Aug 2010 13:27:33 +0200
Committer:  Michal Soltys <soltys at ziu.info>
CommitDate: Mon, 16 Aug 2010 00:41:44 +0200

chain.c: minor fixes

This fixes segval comparison and two mistypes.

Signed-off-by: Michal Soltys <soltys at ziu.info>

---
 com32/chain/chain.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/com32/chain/chain.c b/com32/chain/chain.c
index 3bd5548..65d6414 100644
--- a/com32/chain/chain.c
+++ b/com32/chain/chain.c
@@ -518,7 +518,7 @@ int main(int argc, char *argv[])
 	    opt.loadfile = argv[i] + 5;
 	} else if (!strncmp(argv[i], "seg=", 4)) {
 	    uint32_t segval = strtoul(argv[i] + 4, NULL, 0);
-	    if (segval < 0x50 || segval > 0x9f000) {
+	    if (segval < 0x50 || segval > 0x9f00) {
 		error("Invalid segment\n");
 		goto bail;
 	    }
@@ -754,7 +754,7 @@ int main(int argc, char *argv[])
 		/* Boot info table info (integers in little endian format)
 
 		   Offset Name         Size      Meaning
-		   8     bi_pvd       4 bytes   LBA of primary volume descriptor
+		   8      bi_pvd       4 bytes   LBA of primary volume descriptor
 		   12     bi_file      4 bytes   LBA of boot file
 		   16     bi_length    4 bytes   Boot file length in bytes
 		   20     bi_csum      4 bytes   32-bit checksum
@@ -844,7 +844,7 @@ int main(int argc, char *argv[])
 
 	    if (data[ndata].size < sizeof(struct grub_stage2_patch_area)) {
 		error
-		    ("The file specified by grub=<loader> is to small to be stage2 of GRUB Legacy.\n");
+		    ("The file specified by grub=<loader> is too small to be stage2 of GRUB Legacy.\n");
 		goto bail;
 	    }
 


More information about the Syslinux-commits mailing list