(comtch, stmtch): Make more similar, document. No functional changes.

This commit is contained in:
Markus Armbruster 2004-09-10 19:36:02 +00:00
parent 18fdb41bd0
commit 66eaa28f92
2 changed files with 14 additions and 11 deletions

View file

@ -56,7 +56,7 @@ stmtch(char *needle, void *haystack, ptrdiff_t offs, size_t elt_size)
case ME_MISMATCH:
break;
case ME_PARTIAL:
if (res != M_NOTFOUND)
if (res >= 0)
return M_NOTUNIQUE;
res = i;
break;