From 0072819204d1f6ed04fbeb102291c97f0ee9c650 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 01:50:44 +0100 Subject: Allowed longer simulation names --- tsalis/src/tsalis.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tsalis/src/tsalis.c') diff --git a/tsalis/src/tsalis.c b/tsalis/src/tsalis.c index ab24c61..81c9a3d 100644 --- a/tsalis/src/tsalis.c +++ b/tsalis/src/tsalis.c @@ -33,7 +33,7 @@ onLoad(const char *fileName) FILE *testFile; if (strlen(fileName) > NAME_MAX_SIZE) { - fputs("ERROR: File name too long", stderr); + fputs("ERROR: File name too long\n", stderr); exit(1); } @@ -44,7 +44,7 @@ onLoad(const char *fileName) fclose(testFile); s_load(g_simName); } else { - fputs("ERROR: File does not exist", stderr); + fputs("ERROR: File does not exist\n", stderr); exit(1); } } @@ -63,11 +63,11 @@ init(int argc, char **argv) } else if (cmd == 'l') { onLoad(val); } else { - fputs("ERROR: Incorrect arguments", stderr); + fputs("ERROR: Incorrect arguments\n", stderr); exit(1); } } else { - fputs("ERROR: Incorrect argument count", stderr); + fputs("ERROR: Incorrect argument count\n", stderr); exit(1); } -- cgit v1.2.1