Replay: fixed linux build warning

This commit is contained in:
Andrew Tridgell 2020-11-08 21:28:40 +11:00
parent 3dff0b3d58
commit 0d8a36d0c0

View File

@ -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;