summaryrefslogtreecommitdiff
path: root/src/Make_mvc.mak
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-04-21 11:30:48 +0200
committerBram Moolenaar <Bram@vim.org>2021-04-21 11:30:48 +0200
commitd23f8bde5cd16b7752cc4a73da106673839ed824 (patch)
treeaffc4e5f941e4eed6805b84d5e0ade6349388c08 /src/Make_mvc.mak
parent9ce47ec0b65f81358febacbd9b808ac8ef7af85c (diff)
downloadvim-git-d23f8bde5cd16b7752cc4a73da106673839ed824.tar.gz
patch 8.2.2793: MS-Windows: string literals are writable with MSVCv8.2.2793
Problem: MS-Windows: string literals are writable with MSVC. Solution: Add the /GF compiler flag. Make mch_write() safer. (Ken Takata, closes #8133)
Diffstat (limited to 'src/Make_mvc.mak')
-rw-r--r--src/Make_mvc.mak2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak
index 257f7e033..0f5611a43 100644
--- a/src/Make_mvc.mak
+++ b/src/Make_mvc.mak
@@ -489,7 +489,7 @@ CON_LIB = $(CON_LIB) /DELAYLOAD:comdlg32.dll /DELAYLOAD:ole32.dll DelayImp.lib
#VIMRCLOC = somewhere
#VIMRUNTIMEDIR = somewhere
-CFLAGS = -c /W3 /nologo $(CVARS) -I. -Iproto -DHAVE_PATHDEF -DWIN32 \
+CFLAGS = -c /W3 /GF /nologo $(CVARS) -I. -Iproto -DHAVE_PATHDEF -DWIN32 \
$(CSCOPE_DEFS) $(TERM_DEFS) $(SOUND_DEFS) $(NETBEANS_DEFS) $(CHANNEL_DEFS) \
$(NBDEBUG_DEFS) $(XPM_DEFS) \
$(DEFINES) -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER)