From 0cb1baaf5054e03b93fadb02ef3411dffe9ca2e9 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 25 Feb 2024 18:23:21 -0500 Subject: Changed bzero to memset, in order to eliminate warnings on windows. --- src/lpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lpm.c b/src/lpm.c index 595ec8c..e287808 100644 --- a/src/lpm.c +++ b/src/lpm.c @@ -918,7 +918,7 @@ static int lpm_extract(lua_State* L) { if (current_read[strlen(last_read) + read_size - 1] != '\n') strcpy(last_read, strtok_r(current_read, "\n", l_line_ptr)); else - bzero(last_read, strlen(last_read)); + memset(last_read, 0, strlen(last_read)); } } -- cgit v1.2.3