hdt: fix precedence problem in double-space check
authorJim Cromie <jim.cromie@gmail.com>
Wed, 13 Apr 2011 18:57:31 +0000 (20:57 +0200)
committerErwan Velu <erwanaliasr1@gmail.com>
Wed, 13 Apr 2011 19:00:05 +0000 (21:00 +0200)
com32/hdt/hdt-common.c

index 8ae49ee..f475399 100644 (file)
@@ -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) == ' ')) {