summaryrefslogtreecommitdiffhomepage
path: root/Parser/Parser.cpp
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 16:45:43 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 16:45:43 +0000
commit50971e84e295033941fac5291b08e593541fe945 (patch)
treea1e43917a11c9cceef9bd54e3e526e640f89ae02 /Parser/Parser.cpp
parent8b31193bae95cadc667c6e65817aab688c915f1d (diff)
downloadstarshatter-50971e84e295033941fac5291b08e593541fe945.zip
starshatter-50971e84e295033941fac5291b08e593541fe945.tar.gz
starshatter-50971e84e295033941fac5291b08e593541fe945.tar.bz2
Various replacements for unsafe string handling
Diffstat (limited to 'Parser/Parser.cpp')
-rw-r--r--Parser/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}