mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-30 02:44:50 +00:00
Fix warning in gcc 8.1.0
This commit is contained in:
parent
13f62ead1b
commit
b76a3ad399
@ -1967,7 +1967,7 @@ bool Gnuplot::get_program_path()
|
|||||||
size_t len = strlen(path);
|
size_t len = strlen(path);
|
||||||
if (path && len < 4046 * sizeof(char))
|
if (path && len < 4046 * sizeof(char))
|
||||||
{
|
{
|
||||||
strncpy(secured_path, path, len - 1);
|
strncpy(secured_path, path, sizeof(secured_path));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user