Skip to content

Commit

Permalink
Follow-up to 685e0a8, drop extra snprintf() args
Browse files Browse the repository at this point in the history
Issue #332

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Dec 20, 2022
1 parent f98be85 commit 48cfbfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modules-load.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ static int modules_load(const char *file, int index)
goto next;

if (!index)
snprintf(cmd, sizeof(cmd), SERVICE_LINE_NOINDEX, mod, lvl, modprobe_path, mod, args, mod);
snprintf(cmd, sizeof(cmd), SERVICE_LINE_NOINDEX, mod, lvl, modprobe_path, mod, args);
else
snprintf(cmd, sizeof(cmd), SERVICE_LINE, mod, index++, lvl, modprobe_path, mod, args, mod);
snprintf(cmd, sizeof(cmd), SERVICE_LINE, mod, index++, lvl, modprobe_path, mod, args);

dbg("task %s", cmd);
service_register(SVC_TYPE_TASK, cmd, global_rlimit, NULL);
Expand Down

0 comments on commit 48cfbfe

Please sign in to comment.