diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index a132a0a7e..94f4e887c 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -57,6 +57,7 @@ #include #include #include +#include #include "cygerrno.h" #include "path.h" #include "fhandler.h" @@ -2800,7 +2801,7 @@ restart: if (*p != '.' && *p != ' ') { while (*--p != '\\') - ; + assert(p >= path); if (*++p != ' ') p = NULL; }