aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt
diff options
context:
space:
mode:
authorJim Cromie <jim.cromie@gmail.com>2011-04-13 20:57:31 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2011-04-13 21:00:05 +0200
commitc510203fc3b6cd7b438194ab3639c527f7f73e52 (patch)
tree8f51a971a4c4ef8b1f0faf999bbd261b0fa3f647 /com32/hdt
parent86e551c6b5865d11d7118e1eea6fc751a2ab4122 (diff)
downloadsyslinux-c510203fc3b6cd7b438194ab3639c527f7f73e52.tar.gz
syslinux-c510203fc3b6cd7b438194ab3639c527f7f73e52.tar.xz
syslinux-c510203fc3b6cd7b438194ab3639c527f7f73e52.zip
hdt: fix precedence problem in double-space check
Diffstat (limited to 'com32/hdt')
-rw-r--r--com32/hdt/hdt-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/hdt/hdt-common.c b/com32/hdt/hdt-common.c
index 8ae49ee7..f475399c 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) == ' ')) {