From 474039de7af2cee7fa309e06a5c4e75b81f220ad Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 31 Jul 2025 13:41:29 +0200 Subject: Fixed table name in tools --- tools/300_solve_small/solve_small.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tools/300_solve_small') diff --git a/tools/300_solve_small/solve_small.c b/tools/300_solve_small/solve_small.c index 83a712a..af82b80 100644 --- a/tools/300_solve_small/solve_small.c +++ b/tools/300_solve_small/solve_small.c @@ -47,7 +47,7 @@ void run(void) { } int main(int argc, char **argv) { - char filename[255], dataid[NISSY_SIZE_DATAID]; + char filename[7+NISSY_SIZE_DATAID], dataid[NISSY_SIZE_DATAID]; if (argc < 2) { printf("Error: not enough arguments. " @@ -59,13 +59,11 @@ int main(int argc, char **argv) { srand(time(NULL)); nissy_setlogger(log_stderr, NULL); - - sprintf(filename, "tables/%s", solver); + size = nissy_solverinfo(solver, dataid); + sprintf(filename, "tables/%s", dataid); if (getdata(solver, &buf, filename) != 0) return 1; - size = nissy_solverinfo(solver, dataid); - timerun(run); free(buf); -- cgit v1.3