aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2011-04-26 17:46:29 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2011-04-26 17:46:29 -0700
commit0495db537adacc47e69047204b3385e6b9581942 (patch)
treef8fb48f0e1d1b6bd68f6e320629e1c1452869561
parentecc3cb5682637f375c6733e38e0a3220c2793739 (diff)
downloadsyslinux-0495db537adacc47e69047204b3385e6b9581942.tar.gz
syslinux-0495db537adacc47e69047204b3385e6b9581942.tar.xz
syslinux-0495db537adacc47e69047204b3385e6b9581942.zip
dmi: actually advance the end pointer properlysyslinux-4.10-pre8
... so we don't just end up with a single character per string. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--core/dmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dmi.c b/core/dmi.c
index e4deb15b..045b133b 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++;
}