From 062bda5d62f3956ef5e94214dba63a4ade4e3855 Mon Sep 17 00:00:00 2001
From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com>
Date: Tue, 27 Feb 2024 20:30:28 +0000
Subject: Tue, Feb 27, 2024, 12:30 PM -08:00

---
 wk4/lect/compare.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'wk4')

diff --git a/wk4/lect/compare.c b/wk4/lect/compare.c
index 98ee8c2..7226c38 100644
--- a/wk4/lect/compare.c
+++ b/wk4/lect/compare.c
@@ -9,7 +9,7 @@ int main(void)
     char *s = get_string("s: ");
     char *t = get_string("t: ");
 
-    if (s==t)
+    if (!strcmp(s,t))
     {
         printf("Same\n");
     }
-- 
cgit v1.2.3