FS-11911: Fix build on Debian Buster

This commit is contained in:
Andrey Volk
2019-06-19 23:53:35 +04:00
parent 4f50a24a90
commit a7477ed0e2
24 changed files with 36 additions and 50 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ static void db_pick_path(const char *dbname, char *buf, switch_size_t size)
{
memset(buf, 0, size);
if (switch_is_file_path(dbname)) {
strncpy(buf, dbname, size);
strncpy(buf, dbname, size-1);
} else {
switch_snprintf(buf, size, "%s%s%s.db", SWITCH_GLOBAL_dirs.db_dir, SWITCH_PATH_SEPARATOR, dbname);
}