[syslinux:master] hdt: fix precedence problem in double-space check
syslinux-bot for Jim Cromie
jim.cromie at gmail.com
Mon Apr 25 15:29:03 PDT 2011
Commit-ID: c510203fc3b6cd7b438194ab3639c527f7f73e52
Gitweb: http://syslinux.zytor.com/commit/c510203fc3b6cd7b438194ab3639c527f7f73e52
Author: Jim Cromie <jim.cromie at gmail.com>
AuthorDate: Wed, 13 Apr 2011 20:57:31 +0200
Committer: Erwan Velu <erwanaliasr1 at gmail.com>
CommitDate: Wed, 13 Apr 2011 21:00:05 +0200
hdt: fix precedence problem in double-space check
---
com32/hdt/hdt-common.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/com32/hdt/hdt-common.c b/com32/hdt/hdt-common.c
index 8ae49ee..f475399 100644
--- a/com32/hdt/hdt-common.c
+++ b/com32/hdt/hdt-common.c
@@ -661,7 +661,7 @@ char *del_multi_spaces(char *p)
* As we search for a double spacing
* we have to be sure then string is
* long enough to be processed */
- while (*p && *p + 1) {
+ while (*p && *(p + 1)) {
/* If we have two consecutive spaces */
if ((*p == ' ') && (*(p + 1) == ' ')) {
More information about the Syslinux-commits
mailing list