[syslinux:lwip] dmi: actually advance the end pointer properly

syslinux-bot for H. Peter Anvin hpa at linux.intel.com
Tue Apr 26 17:48:02 PDT 2011


Commit-ID:  0495db537adacc47e69047204b3385e6b9581942
Gitweb:     http://syslinux.zytor.com/commit/0495db537adacc47e69047204b3385e6b9581942
Author:     H. Peter Anvin <hpa at linux.intel.com>
AuthorDate: Tue, 26 Apr 2011 17:46:29 -0700
Committer:  H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Tue, 26 Apr 2011 17:46:29 -0700

dmi: actually advance the end pointer properly

... so we don't just end up with a single character per string.

Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>


---
 core/dmi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/core/dmi.c b/core/dmi.c
index e4deb15..045b133 100644
--- a/core/dmi.c
+++ b/core/dmi.c
@@ -278,7 +278,7 @@ static const char *dmi_install_string(const char *pfx, const char *str)
     ep = p = str;
     while (*p) {
 	if (!is_ctl_or_whitespace(*p))
-	    ep = str+1;
+	    ep = p+1;
 	p++;
     }
 



More information about the Syslinux-commits mailing list