Greg Smith: > Microsoft, in their wisdom, have decided to deprecate sprintf and such > functions that are capable of overrunning buffers - perhaps they should fix > their programmers. Anyhow, this results in warnings when you compile in .Net > 2005. These can be defeated by: > > #define _CRT_SECURE_NO_DEPRECATE > > 1) Would Neil accept a patch to put this in. > 2) Where should it go?
This is already present in scintilla.mak and scite.mak: CXXFLAGS=-Zi -TP -W4 -Zc:forScope -Zc:wchar_t -D_CRT_SECURE_NO_DEPRECATE=1 > Warnings occur in: > CallTip.cxx (strcpy) > Editor.cxx (sprintf) > ViewStyle.cxx (strcpy) > externallexer.h (strncpy) > scintillawin.cxx (strcpy) These are standard C library calls available from all supported compilers and I'm not going to substitute Microsoft-specific calls that are only available with the most recent version of their compiler. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
