From 764bd0b8bff46b944cf8cc123527938ed2ceabad Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 17 Feb 2024 22:17:32 +0100 Subject: Use pre-C11/non-Windows sprintf and strcpy --- DefinitionEx/Token.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'DefinitionEx/Token.cpp') diff --git a/DefinitionEx/Token.cpp b/DefinitionEx/Token.cpp index 2cc97b5..e61a1fb 100644 --- a/DefinitionEx/Token.cpp +++ b/DefinitionEx/Token.cpp @@ -40,7 +40,7 @@ Token::Token(const Token& rhs) { mLength = rhs.mLength; if (mLength < 8) { - strcpy_s(mSymbol, rhs.mSymbol); + strcpy(mSymbol, rhs.mSymbol); } else { mFullSymbol = new char[mLength + 1]; @@ -60,7 +60,7 @@ Token::Token(const char* s, int t, int k, int l, int c) { mLength = strlen(s); if (mLength < 8) { - strcpy_s(mSymbol, s); + strcpy(mSymbol, s); } else { mFullSymbol = new char[mLength + 1]; @@ -73,7 +73,7 @@ Token::Token(const Text& s, int t, int k, int l, int c) { mLength = s.length(); if (mLength < 8) { - strcpy_s(mSymbol, s.data()); + strcpy(mSymbol, s.data()); } else { mFullSymbol = new char[mLength + 1]; @@ -105,7 +105,7 @@ Token::operator = (const Token& rhs) mLength = rhs.mLength; if (mLength < 8) { - strcpy_s(mSymbol, rhs.mSymbol); + strcpy(mSymbol, rhs.mSymbol); } else { mFullSymbol = new char[mLength + 1]; -- cgit v1.1