From 06fba919c9d91cbc826a18ed3098814222e87831 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Thu, 12 Jun 2025 07:51:00 +0300 Subject: Fix strsub strsub().fullness was UB if outside had not collisions with inside --- fp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fp.c b/fp.c index 6ff2447..073c972 100644 --- a/fp.c +++ b/fp.c @@ -64,7 +64,7 @@ void getchhnd(int sig) struct collision strsub(const char *outside, const char *inside) { - struct collision res = {0, 0}; + struct collision res = {0, 0, 0}; size_t outlen = strlen(outside); size_t inlen = strlen(inside); -- cgit 1.4.1