mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 20:50:33 +00:00
Fix warning in gcc 8.1.0
This commit is contained in:
parent
bbaa660f66
commit
13f62ead1b
@ -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);
|
strncpy(secured_path, path, len - 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user