summaryrefslogtreecommitdiff
path: root/src/modules/fonts
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-11 18:38:15 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-11 18:38:15 +0000
commit27c63813af1433d827335b5d1d34c2b70eddeb6b (patch)
tree00c17e3d2e4c378a99dbdb5655039aced63430c4 /src/modules/fonts
parent6651124419887cafa9b3ecda6a3e479a477e4077 (diff)
strcpy() calls replaced with strncpy_s()
git-svn-id: http://svn.miranda-ng.org/main/trunk@12772 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/fonts')
-rw-r--r--src/modules/fonts/services.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/fonts/services.cpp b/src/modules/fonts/services.cpp
index 39805750dc..5462b2a5b3 100644
--- a/src/modules/fonts/services.cpp
+++ b/src/modules/fonts/services.cpp
@@ -45,8 +45,8 @@ bool ConvertFontID(FontID *fid, FontIDW *fidw)
memset(fidw, 0, sizeof(FontIDW));
fidw->cbSize = sizeof(FontIDW);
- strcpy(fidw->dbSettingsGroup, fid->dbSettingsGroup);
- strcpy(fidw->prefix, fid->prefix);
+ strncpy_s(fidw->dbSettingsGroup, fid->dbSettingsGroup, _TRUNCATE);
+ strncpy_s(fidw->prefix, fid->prefix, _TRUNCATE);
fidw->flags = fid->flags;
fidw->order = fid->order;
ConvertFontSettings(&fid->deffontsettings, &fidw->deffontsettings);
@@ -68,8 +68,8 @@ bool ConvertColourID(ColourID *cid, ColourIDW *cidw)
cidw->cbSize = sizeof(ColourIDW);
- strcpy(cidw->dbSettingsGroup, cid->dbSettingsGroup);
- strcpy(cidw->setting, cid->setting);
+ strncpy_s(cidw->dbSettingsGroup, cid->dbSettingsGroup, _TRUNCATE);
+ strncpy_s(cidw->setting, cid->setting, _TRUNCATE);
cidw->flags = cid->flags;
cidw->defcolour = cid->defcolour;
cidw->order = cid->order;
@@ -86,8 +86,8 @@ bool ConvertEffectID(EffectID *eid, EffectIDW *eidw)
eidw->cbSize = sizeof(EffectIDW);
- strcpy(eidw->dbSettingsGroup, eid->dbSettingsGroup);
- strcpy(eidw->setting, eid->setting);
+ strncpy_s(eidw->dbSettingsGroup, eid->dbSettingsGroup, _TRUNCATE);
+ strncpy_s(eidw->setting, eid->setting, _TRUNCATE);
eidw->flags = eid->flags;
eidw->defeffect.effectIndex = eid->defeffect.effectIndex;
eidw->defeffect.baseColour = eid->defeffect.baseColour;