1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-16 20:23:02 +00:00

Improve buffer handling. Remove warnings raised by gcc 7.1

This commit is contained in:
Carles Fernandez 2017-08-06 10:32:12 +02:00
parent a7fbde50e6
commit 7bb3581f4b

View File

@ -1627,7 +1627,7 @@ int outsols(unsigned char *buff, const sol_t *sol, const double *rb,
double gpst;
int week,timeu;
const char *sep = opt2sep(opt);
char s[64];
char s[255];
unsigned char *p = buff;
trace(3,"outsols :\n");
@ -1656,7 +1656,7 @@ int outsols(unsigned char *buff, const sol_t *sol, const double *rb,
week++;
gpst = 0.0;
}
snprintf(s, 64, "%4d%s%*.*f", week, sep, 6 + (timeu <= 0 ? 0 : timeu+1), timeu, gpst);
snprintf(s, 255, "%4d%s%*.*f", week, sep, 6 + (timeu <= 0 ? 0 : timeu+1), timeu, gpst);
}
switch (opt->posf)
{