From b800db9e23402c1abcc07fcc969f7388b494fefb Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 3 Mar 2024 14:28:11 -0500 Subject: Wrong function. --- src/lpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lpm.c b/src/lpm.c index 386a067..beef23b 100644 --- a/src/lpm.c +++ b/src/lpm.c @@ -181,7 +181,7 @@ static int lpm_ls(lua_State *L) { int i = 1; #ifdef _WIN32 lua_settop(L, 1); - lua_pushstring(L, path[0] == 0 || strchr("\\/", &path[strlen(path) - 1]) != NULL ? "*" : "\\*"); + lua_pushstring(L, path[0] == 0 || strpbrk(&path[strlen(path) - 1], "\\/") != NULL ? "*" : "\\*"); lua_concat(L, 2); path = lua_tostring(L, -1); -- cgit v1.2.3