From 50971e84e295033941fac5291b08e593541fe945 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 16:45:43 +0000 Subject: Various replacements for unsafe string handling --- Parser/Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Parser/Parser.cpp') diff --git a/Parser/Parser.cpp b/Parser/Parser.cpp index f8dea6f..ae1c157 100644 --- a/Parser/Parser.cpp +++ b/Parser/Parser.cpp @@ -30,7 +30,7 @@ static int dump_tokens = 0; Term* error(char* msg, const Token& token) { static char buf[1024]; - sprintf(buf, " near '%s' in line %d.", (const char*) token.symbol(), token.line()); + sprintf_s(buf, " near '%s' in line %d.", (const char*) token.symbol(), token.line()); return error(msg, buf); } -- cgit v1.1