diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-08 16:45:43 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-08 16:45:43 +0000 |
commit | 50971e84e295033941fac5291b08e593541fe945 (patch) | |
tree | a1e43917a11c9cceef9bd54e3e526e640f89ae02 /Parser/Parser.cpp | |
parent | 8b31193bae95cadc667c6e65817aab688c915f1d (diff) | |
download | starshatter-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.cpp | 2 |
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);
}
|