From 8f4e62e7b071955eafc7066ccdaaeb775fcf4c0c Mon Sep 17 00:00:00 2001 From: Michael Ortmann <41313082+michaelortmann@users.noreply.github.com> Date: Mon, 17 Jun 2024 03:36:01 +0200 Subject: [PATCH] Add () to enhance style --- src/modules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules.c b/src/modules.c index 52adf5543..0b12f31d4 100644 --- a/src/modules.c +++ b/src/modules.c @@ -739,7 +739,7 @@ const char *module_load(char *name) return MOD_BADCWD; } len = strlen(workbuf); - snprintf(workbuf + len, sizeof workbuf - len, "/%s%s." EGG_MOD_EXT, moddir, name); + snprintf(workbuf + len, (sizeof workbuf) - len, "/%s%s." EGG_MOD_EXT, moddir, name); } else { snprintf(workbuf, sizeof workbuf, "%s%s." EGG_MOD_EXT, moddir, name); }