1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 04:01:38 +00:00

SCP: Avoid potential buffer overflow using sprintf

- avoid warnings about snprintf truncation

As reported in #717
This commit is contained in:
Mark Pizzolato
2019-07-02 09:53:56 -07:00
parent eadfeffdf3
commit 9e71982249
2 changed files with 11 additions and 7 deletions

View File

@@ -1175,6 +1175,9 @@ ifneq (3,$(GCC_MAJOR_VERSION))
ifneq (,$(findstring -Wunused-result,$(shell $(GCC_WARNINGS_CMD))))
CFLAGS_O += -Wno-unused-result
endif
ifneq (,$(findstring -Wformat-truncation,$(shell $(GCC_WARNINGS_CMD))))
CFLAGS_O += -Wno-format-truncation
endif
endif
ifneq (clean,$(MAKECMDGOALS))
BUILD_FEATURES := $(BUILD_FEATURES). $(COMPILER_NAME)