# HG changeset patch # User Karl Heuer # Date 780867446 0 # Node ID f49aca34b7ae5ff5817f9b7c7f8fe77f6bac86dc # Parent 516fdeee89d694e723447907a72f714ca6b571d6 (scmp): Use unsigned chars, to avoid confusing DOWNCASE. diff -r 516fdeee89d6 -r f49aca34b7ae src/minibuf.c --- a/src/minibuf.c Thu Sep 29 19:23:41 1994 +0000 +++ b/src/minibuf.c Thu Sep 29 19:37:26 1994 +0000 @@ -774,8 +774,9 @@ Return -1 if strings match, else number of chars that match at the beginning. */ +int scmp (s1, s2, len) - register char *s1, *s2; + register unsigned char *s1, *s2; int len; { register int l = len; @@ -792,7 +793,8 @@ } if (l == 0) return -1; - else return len - l; + else + return len - l; } DEFUN ("all-completions", Fall_completions, Sall_completions, 2, 3, 0,