aboutsummaryrefslogtreecommitdiff
path: root/PuzzleApplet.java
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2019-09-01 22:26:22 +0100
committerSimon Tatham <anakin@pobox.com>2019-09-01 22:26:22 +0100
commit907c42bcf0f06826279d5be91be7f7f9c45876d9 (patch)
tree373f5ed652ab67c33ee8c1b6692a70b4a6732bb5 /PuzzleApplet.java
parente2135d51c51a39f05e2c20c70111b27c15952803 (diff)
downloadpuzzles-907c42bcf0f06826279d5be91be7f7f9c45876d9.zip
puzzles-907c42bcf0f06826279d5be91be7f7f9c45876d9.tar.gz
puzzles-907c42bcf0f06826279d5be91be7f7f9c45876d9.tar.bz2
puzzles-907c42bcf0f06826279d5be91be7f7f9c45876d9.tar.xz
Fix build failure reported in gcc 9.
Apparently gcc 9 is clever enough to say 'Hey, runtime field width in an sprintf targeting a fixed-size buffer!', but not clever enough to notice that the width was computed earlier as the max of lots of default-width sprintfs into the same buffer (so _either_ it's safe, or else - on a hypothetical platform with a 263-bit int - the damage was already done). Added a bounds check or two to keep it happy.
Diffstat (limited to 'PuzzleApplet.java')
0 files changed, 0 insertions, 0 deletions