mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 14:40:22 +00:00
Libug: fixed a compiler warning
This commit is contained in:
@@ -239,7 +239,7 @@ struct ug_receiver *ug_receiver_start(struct ug_receiver_parameters *init_params
|
||||
const char *display_cfg = "";
|
||||
|
||||
if (init_params->display != nullptr) {
|
||||
strncpy(display, init_params->display, sizeof display);
|
||||
strncpy(display, init_params->display, sizeof display - 1);
|
||||
if (strchr(display, ':') != nullptr) {
|
||||
display_cfg = strchr(display, ':') + 1;
|
||||
*strchr(display, ':') = '\0';
|
||||
|
||||
Reference in New Issue
Block a user