diff --git a/utils/mnettoss/mnettoss.c b/utils/mnettoss/mnettoss.c index 8a54819..f142960 100644 --- a/utils/mnettoss/mnettoss.c +++ b/utils/mnettoss/mnettoss.c @@ -284,7 +284,7 @@ void update_config_file_area(int areaid) { if (ptr != NULL) { trimwhitespace(bufferw, 256, ptr); id = atoi(bufferw); - if (id == areaid) { + if (id == areas[areaid]->id) { fprintf(fptr2, "MSGAREA, %d, %d, %s", areas[areaid]->id, areas[areaid]->hub, areas[areaid]->basedir); for (i=0;ilink_count;i++) { fprintf(fptr2, ", %d", areas[areaid]->links[i]);