From c510203fc3b6cd7b438194ab3639c527f7f73e52 Mon Sep 17 00:00:00 2001 From: Jim Cromie Date: Wed, 13 Apr 2011 20:57:31 +0200 Subject: [PATCH] hdt: fix precedence problem in double-space check --- com32/hdt/hdt-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) == ' ')) { -- 2.11.4.GIT