From b216920600ac1cc99c94860e043ea68dc4733a46 Mon Sep 17 00:00:00 2001 From: xolatile Date: Sun, 16 Jun 2024 14:16:28 -0400 Subject: [PATCH] Added one null comparison in string compare... --- xtandard.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xtandard.c b/xtandard.c index 7d3d76e..5b21133 100644 --- a/xtandard.c +++ b/xtandard.c @@ -523,7 +523,11 @@ int string_compare (char * string_0, char * string_1) { } } - return (true); + if (string_0 [i] != string_1 [i]) { + return (false); + } else { + return (true); + } } char * string_copy (char * string_0, char * string_1) {