Fix counter increment. - sam - An updated version of the sam text editor. | |
git clone git://vernunftzentrum.de/sam.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit a162f12e7badc521f2faa61123f3f70bcc98db37 | |
parent 4f6b0d8ce54e4cfb281246704368631baf66dc6e | |
Author: Rob King <[email protected]> | |
Date: Thu, 26 May 2016 00:01:53 -0500 | |
Fix counter increment. | |
Diffstat: | |
sam/string.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/sam/string.c b/sam/string.c | |
@@ -108,7 +108,7 @@ Strcmp(String *a, String *b, int *l) | |
if(c = (a->s[i] - b->s[i])) /* assign = */ | |
return c; | |
if (l) | |
- *l = i; | |
+ (*l)++; | |
} | |
/* damn NULs confuse everything */ | |
i = a->n - b->n; |