Double the char value in the signs parser to prevent an
out of bounds segfault.
This commit is contained in:
parent
fd597739ea
commit
f7ca9005ce
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ Beacon::Beacon( 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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue