mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
FS-11911: Fix build on Debian Buster
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user