Introduction
Introduction Statistics Contact Development Disclaimer Help
trstr: return -1 from rstr_find() if the string is too short - neatvi - [fork] …
git clone git://src.adamsgaard.dk/neatvi
Log
Files
Refs
README
---
commit 10f95a93f415196040f45fd84924244856dcfff0
parent 16eb081e786b544797606b0d0e8d4393c32b13ff
Author: Ali Gholami Rudi <[email protected]>
Date: Tue, 30 Nov 2021 20:52:58 +0330
rstr: return -1 from rstr_find() if the string is too short
Diffstat:
M rstr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rstr.c b/rstr.c
t@@ -88,7 +88,7 @@ int rstr_find(struct rstr *rs, char *s, int n, int *grps, in…
beg = s;
end = s + strlen(s) - len - 1;
if (end < beg)
- end = beg;
+ return -1;
if (rs->lbeg)
end = beg;
if (rs->lend)
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.