Skip to content

Commit

Permalink
Add () to enhance style
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelortmann committed Jun 17, 2024
1 parent 627e769 commit 8f4e62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8f4e62e

Please sign in to comment.