From: Jim Cromie Date: Wed, 13 Apr 2011 18:57:31 +0000 (+0200) Subject: hdt: fix precedence problem in double-space check X-Git-Tag: syslinux-4.05-pre1~20^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c510203fc3b6cd7b438194ab3639c527f7f73e52;p=profile%2Fivi%2Fsyslinux.git hdt: fix precedence problem in double-space check --- 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) == ' ')) {