diff options
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/db.cpp | 3 |
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);
}
|