[syslinux:master] chain.c32: "fs" is a singular token, only match if complete

syslinux-bot for H. Peter Anvin hpa at zytor.com
Sat Jun 26 15:00:15 PDT 2010


Commit-ID:  571b20b3daaf32c0dffde0bb513cb256a8a41f03
Gitweb:     http://syslinux.zytor.com/commit/571b20b3daaf32c0dffde0bb513cb256a8a41f03
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sat, 26 Jun 2010 14:57:14 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sat, 26 Jun 2010 14:57:14 -0700

chain.c32: "fs" is a singular token, only match if complete

fs is a full token, not a prefix.

Reported-by: Gert Hulselmans <gerth at zytor.com>
Signed-off-by: H. Peter Anvin <hpa at zytor.com>


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

diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index 4af7b25..111051b 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -1353,7 +1353,7 @@ int main(int argc, char *argv[])
 		   || !strncmp(argv[i], "label=", 6)
 		   || !strcmp(argv[i], "boot")
 		   || !strncmp(argv[i], "boot,", 5)
-		   || !strncmp(argv[i], "fs", 2)) {
+		   || !strcmp(argv[i], "fs")) {
 	    drivename = argv[i];
 	    p = strchr(drivename, ',');
 	    if (p) {



More information about the Syslinux-commits mailing list