diff --git a/main.cpp b/main.cpp index 59c434f..f09e181 100644 --- a/main.cpp +++ b/main.cpp @@ -1195,9 +1195,9 @@ static bool parseLoader(FILE* file) { if (fscanf(file, OPT_LOADER_NAME "%d=%s", &index, buf) != 2) return false; - index--; strcpy(gOpts.loader[index].name, buf); printf("name%d: %s\n", index, gOpts.loader[index].name); + index++; } for (i=0; i