From 7e5da8e27b5ccac672a8807c11d29837c96500a0 Mon Sep 17 00:00:00 2001 From: MadcowOG Date: Fri, 21 Apr 2023 23:40:28 -0700 Subject: [PATCH] Forgor to add the n in strncmp. --- src/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.h b/src/util.h index 6d3534a..35ce2c0 100644 --- a/src/util.h +++ b/src/util.h @@ -6,7 +6,7 @@ #include #define STRING_EQUAL(string1, string2) strcmp(string1, string2) == 0 -#define STRINGN_EQUAL(string1, string2, n) strcmp(string1, string2, n) == 0 +#define STRINGN_EQUAL(string1, string2, n) strncmp(string1, string2, n) == 0 #define LENGTH(X) (sizeof X / sizeof X[0] ) struct List {