From 45d1a0954ee643d4c1c60d07c6560a16c4aa115a Mon Sep 17 00:00:00 2001 From: Eric Katzfey Date: Thu, 14 Nov 2024 12:37:36 -0800 Subject: [PATCH] AP_Scripting: Fix method of accessing character string to fix Qurt compiler warning --- libraries/AP_Scripting/lua/src/lundump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/lua/src/lundump.c b/libraries/AP_Scripting/lua/src/lundump.c index ee86a91ed6..432db3c337 100644 --- a/libraries/AP_Scripting/lua/src/lundump.c +++ b/libraries/AP_Scripting/lua/src/lundump.c @@ -241,7 +241,7 @@ static void fchecksize (LoadState *S, size_t size, const char *tname) { #define checksize(S,t) fchecksize(S,sizeof(t),#t) static void checkHeader (LoadState *S) { - checkliteral(S, LUA_SIGNATURE + 1, "not a"); /* 1st char already checked */ + checkliteral(S, &LUA_SIGNATURE[1], "not a"); /* 1st char already checked */ if (LoadByte(S) != LUAC_VERSION) error(S, "version mismatch in"); if (LoadByte(S) != LUAC_FORMAT)