From: Mark Wooding Date: Mon, 19 Feb 2007 17:25:49 +0000 (+0000) Subject: ec-info: Add trailing newline to error message. X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/commitdiff_plain/3cf910802dbd1358ec4bcd934676f7d528a8295e ec-info: Add trailing newline to error message. If there are syntactically incorrect curves on the command line, an error is reported without a trailing newline. This has a tendency to get eaten by bash (my prompt has a carriage return at the beginning). --- diff --git a/ec-info.c b/ec-info.c index 0e225a7..ebc05dc 100644 --- a/ec-info.c +++ b/ec-info.c @@ -540,7 +540,7 @@ int main(int argc, char *argv[]) for (i = 1; i < argc; i++) { ec_info ei; if ((e = ec_getinfo(&ei, argv[i])) != 0) - fprintf(stderr, "bad curve spec `%s': %s", argv[i], e); + fprintf(stderr, "bad curve spec `%s': %s\n", argv[i], e); else { e = ec_checkinfo(&ei, gr); ec_freeinfo(&ei);