[syslinux:lwip] sysappend: advance pointer

syslinux-bot for H. Peter Anvin hpa at zytor.com
Mon Jun 27 18:39:02 PDT 2011


Commit-ID:  822623d3583ac8a32c75f8fb98a1121c1d7a6c01
Gitweb:     http://syslinux.zytor.com/commit/822623d3583ac8a32c75f8fb98a1121c1d7a6c01
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 27 Jun 2011 12:12:53 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 27 Jun 2011 12:12:53 -0700

sysappend: advance pointer

Yet another no-pointer-advance bug... what the hell?

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


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

diff --git a/core/sysappend.c b/core/sysappend.c
index 31eb067..8a63eb9 100644
--- a/core/sysappend.c
+++ b/core/sysappend.c
@@ -33,7 +33,7 @@ static char *copy_and_mangle(char *dst, const char *src)
     char *end = dst;
     char c;
 
-    while ((c = *src)) {
+    while ((c = *src++)) {
 	if (c <= ' ' && c == '\x7f') {
 	    if (!was_space)
 		*dst++ = '_';



More information about the Syslinux-commits mailing list