From ef94001419579ada49f7d374f1f5160320889c04 Mon Sep 17 00:00:00 2001 From: Richard Patel Date: Thu, 30 Nov 2023 11:43:05 +0100 Subject: [PATCH] Add strndup to lint checks --- sys/lint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/lint.sh b/sys/lint.sh index 0202ab781f..d79362fc76 100755 --- a/sys/lint.sh +++ b/sys/lint.sh @@ -46,6 +46,7 @@ cd "$(dirname $0)"/.. (git grep "`printf '\tfree('`" libr | grep c: ) && exit 1 (git grep cfg.debug libr| grep get_i) && exit 1 (git grep -e 'asm.bytes"' -e 'asm.xrefs"' -e 'asm.functions"' -e 'asm.emu"' -e 'emu.str"' libr| grep get_i) && exit 1 +(git grep -n " strndup (" | grep -v sys/) && exit 1 (git grep eprintf libr| grep -i error | grep -v '/native/' | grep -v spp | grep -v cons) && exit 1