build error Raspbian Buster
Posted: 2020-02-05, 11:38
Hi, ?I'm getting the following build error:
Code: Select all
CaTools/CaSanity.cpp: In function 'void ExportLightMaps(const char*)':
CaTools/CaSanity.cpp:107:28: error: '%s' directive writing up to 255 bytes into a region of size 197 [-Werror=format-overflow=]
sprintf(LMNamePNG, "LM_%s_%02lu.png", WorldName, LMNr);
^~~~~~~~~~~~~~~~~ ~~~~~~~~~
CaTools/CaSanity.cpp:107:16: note: 'sprintf' output between 11 and 274 bytes into a destination of size 200
sprintf(LMNamePNG, "LM_%s_%02lu.png", WorldName, LMNr);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
scons: *** [build/linux2/g++/release/CaTools/CaSanity.o] Error 1
scons: building terminated because of errors.