diff -u -r nano/src/nano.c nano-quot/src/nano.c --- nano/src/nano.c 2004-07-30 21:38:34.000000000 -0400 +++ nano-quot/src/nano.c 2004-07-30 22:58:17.000000000 -0400 @@ -1971,7 +1971,7 @@ size_t qdepth = 0; /* Compute quote depth level. */ - while (!strcmp(line + qdepth, quotestr)) + while (strncmp(line + qdepth, quotestr, quotelen) == 0) qdepth += quotelen; return qdepth; #endif /* !HAVE_REGEX_H */