From 0d8a36d0c05510b5f8a3effc76f3b275f5161c48 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 8 Nov 2020 21:28:40 +1100 Subject: [PATCH] Replay: fixed linux build warning --- Tools/Replay/Replay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/Replay/Replay.cpp b/Tools/Replay/Replay.cpp index bea3f7fa19..1c7553e0d6 100644 --- a/Tools/Replay/Replay.cpp +++ b/Tools/Replay/Replay.cpp @@ -266,7 +266,7 @@ void Replay::load_param_file(const char *pfilename) continue; } struct user_parameter *u = new user_parameter; - strncpy(u->name, pname, sizeof(u->name)); + strncpy_noterm(u->name, pname, sizeof(u->name)); u->value = value; u->next = user_parameters; user_parameters = u;