mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-19 05:33:02 +00:00
Fix Wstringop-truncation warning
This commit is contained in:
parent
840b184beb
commit
4a4d2d134e
@ -3103,7 +3103,7 @@ void readpos(const char *file, const char *rcv, double *pos)
|
||||
continue;
|
||||
}
|
||||
auto sta = stas[np++]; // NOLINT(readability-qualified-auto)
|
||||
std::strncpy(sta, str, 16);
|
||||
strncpy_no_trunc(sta, 16, str, 256);
|
||||
sta[15] = '\0';
|
||||
}
|
||||
fclose(fp);
|
||||
|
Loading…
Reference in New Issue
Block a user