1
0
Fork 0

Double the char value in the signs parser to prevent an

out of bounds segfault.
This commit is contained in:
Christian Schmitt 2011-10-20 17:18:19 +02:00
parent fd597739ea
commit f7ca9005ce

View file

@ -18,7 +18,7 @@ Beacon::Beacon( char* definition )
Sign::Sign( char* definition ) Sign::Sign( char* definition )
{ {
char sgdef[128]; char sgdef[256];
sscanf(definition, "%lf %lf %lf %d %d %s", &lat, &lon, &heading, &reserved, &size, sgdef ); sscanf(definition, "%lf %lf %lf %d %d %s", &lat, &lon, &heading, &reserved, &size, sgdef );