mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 12:40:35 +00:00
Merge branch 'next' of https://github.com/carlesfernandez/gnss-sdr into next
This commit is contained in:
commit
9f7b407b43
@ -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