[remote] Coverity fixups

This commit is contained in:
ejurgensen 2022-01-20 20:10:08 +01:00
parent dcb3973aa4
commit 933affaa7e
1 changed files with 1 additions and 1 deletions

View File

@ -764,7 +764,7 @@ remote_pairing_pair(const char *pin)
return REMOTE_INVALID_PIN;
}
strncpy(cmdarg, pin, sizeof(cmdarg));
snprintf(cmdarg, sizeof(cmdarg), "%s", pin);
return commands_exec_sync(cmdbase, pairing_pair, NULL, &cmdarg);
}