diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-08-01 18:12:05 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-08-01 18:12:05 +0000 |
commit | befbbe3b75cf8001b40fc5fa06d66f1d5b9614da (patch) | |
tree | 0f281a8f499516691634f91848e1656f19dbea26 /plugins/SpellChecker/src/autoreplace.cpp | |
parent | 369f8ac171c5268c2d8944aaeb7fc365e833a832 (diff) |
SpellChecker:
code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@1309 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SpellChecker/src/autoreplace.cpp')
-rw-r--r-- | plugins/SpellChecker/src/autoreplace.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SpellChecker/src/autoreplace.cpp b/plugins/SpellChecker/src/autoreplace.cpp index 2d257ccfec..a5481f7d9b 100644 --- a/plugins/SpellChecker/src/autoreplace.cpp +++ b/plugins/SpellChecker/src/autoreplace.cpp @@ -35,7 +35,7 @@ AutoReplacement::AutoReplacement(const TCHAR *replace, BOOL useVariables) AutoReplaceMap::AutoReplaceMap(TCHAR *aFilename, Dictionary *dict)
{
this->dict = dict;
- lstrcpyn(filename, aFilename, MAX_REGS(filename));
+ lstrcpyn(filename, aFilename, SIZEOF(filename));
loadAutoReplaceMap();
}
@@ -50,7 +50,7 @@ void AutoReplaceMap::loadAutoReplaceMap() int pos = 0;
while((c = fgetc(file)) != EOF)
{
- if (c == '\n' || c == '\r' || pos >= MAX_REGS(tmp) - 1)
+ if (c == '\n' || c == '\r' || pos >= SIZEOF(tmp) - 1)
{
if (pos > 0)
{
|