ref: e90778a08505be8daa9402a4dd2c247db67c59a0
parent: c740374d0d6fa4da5768457edb804f073f506f9e
author: qwx <[email protected]>
date: Sun Aug 23 09:41:40 EDT 2020
strnaive: fix another stupid mistake
--- a/strnaive.c
+++ b/strnaive.c
@@ -15,6 +15,6 @@
v = valloc(n, sizeof(int));
for(i=0; i<n; i++)
if(strcmp(S.s+i, W.s) == 0)
- v = vinsert(v, (void*)&i);
+ vinsert(v, (void*)&i);
return v;
}