fix mistake

This commit is contained in:
Andrew Pamment 2018-05-24 14:06:53 +10:00
parent 6fa4102e0c
commit 1fd7dc5230

View File

@ -272,7 +272,7 @@ void update_config_file_area(int areaid) {
int id; int id;
int i; int i;
snprintf(backup, "%s.bak", config_file); snprintf(backup, PATH_MAX, "%s.bak", config_file);
fptr1 = fopen(config_file, "r"); fptr1 = fopen(config_file, "r");
fptr2 = fopen(backup, "w"); fptr2 = fopen(backup, "w");