This commit is contained in:
radius 2016-06-04 12:07:11 -05:00
parent cd615b3e79
commit aa81de0ca0

View File

@ -1499,7 +1499,8 @@ static void command_event_load_state(const char *path, char *s, size_t len, bool
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();
char buf[PATH_MAX_LENGTH] = {0}; char buf[PATH_MAX_LENGTH] = {0};
if (!undo) { if (!undo)
{
/* TODO: Fence with a setting */ /* TODO: Fence with a setting */
strlcpy(buf, path, sizeof(buf)); strlcpy(buf, path, sizeof(buf));
snprintf(buf, sizeof(buf), "%s", path); snprintf(buf, sizeof(buf), "%s", path);