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/500_pause_resume_stop/pause_resume_stop.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tools/500_pause_resume_stop') diff --git a/tools/500_pause_resume_stop/pause_resume_stop.c b/tools/500_pause_resume_stop/pause_resume_stop.c index ae3b67f..8beee5c 100644 --- a/tools/500_pause_resume_stop/pause_resume_stop.c +++ b/tools/500_pause_resume_stop/pause_resume_stop.c @@ -65,7 +65,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. " @@ -76,12 +76,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