summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-23 12:32:12 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-23 12:32:12 +0000
commit8788bb35e10ef5403a08388d33ed4ab2ff7d67df (patch)
treeb79e5efbfb02418b1276442a59e7722252cf39c8 /src/mir_core
parent05ccb4dcd0b507fb000426667ed3f25c0b93db2b (diff)
new helper applied instead of MS_DB_SETSETTINGRESIDENT
git-svn-id: http://svn.miranda-ng.org/main/trunk@5094 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/db.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mir_core/db.cpp b/src/mir_core/db.cpp
index 7b04b6eab4..08703f6581 100644
--- a/src/mir_core/db.cpp
+++ b/src/mir_core/db.cpp
@@ -318,7 +318,6 @@ MIR_CORE_DLL(BOOL) db_set_resident(const char *szModule, const char *szService,
return FALSE;
char str[MAXMODULELABELLENGTH * 2];
- strncpy_s(str,szModule,strlen(szModule));
- strncat_s(str,szService,strlen(szService));
+ mir_snprintf(str, SIZEOF(str), "%s/%s", szModule, szService);
return currDb->SetSettingResident(bEnable, str);
}