Lines 35-40
Link Here
|
35 |
src/Makefile.in \ |
35 |
src/Makefile.in \ |
36 |
po/Makefile.in.in \ |
36 |
po/Makefile.in.in \ |
37 |
|| die "sed failed" |
37 |
|| die "sed failed" |
|
|
38 |
# Fix _FORTIFY_SOURCE buffer overflow due to wrong sizeof |
39 |
sed -i \ |
40 |
-e 's/\(snprintf(\(name\),sizeof\)(str)/\1(\2)/' \ |
41 |
src/enterHighScoreMode.cc || die |
42 |
# Fix -Wformat-security warning due to non-literal with no format arguments |
43 |
sed -i \ |
44 |
-e 's/\(snprintf(levelname,sizeof(levelname),\)\(name)\)/\1 "%s", \2/' \ |
45 |
-e 's/\(snprintf(Settings::settings->specialLevel,sizeof(Settings::settings->specialLevel),\)\(levelname)\)/\1 "%s", \2/' \ |
46 |
src/editMode.cc || die |
47 |
sed -i \ |
48 |
-e 's/\(snprintf(\(textureName\),\)63\(,textureNames\[i\])\)/\1 sizeof(\2), "%s"\3/' \ |
49 |
src/map.cc || die |
38 |
} |
50 |
} |
39 |
|
51 |
|
40 |
src_configure() { |
52 |
src_configure() { |