Release 1.0.1.
[udpkey] / udpkey.c
index 452a857..4d72079 100644 (file)
--- a/udpkey.c
+++ b/udpkey.c
@@ -150,7 +150,7 @@ static int snarf(const char *name, void **p, size_t *sz)
  * otherwise write to stderr.  Don't use `%m' because that won't work when
  * writing to stderr.
  */
-static void complain(int sev, const char *msg, ...)
+static void PRINTF_LIKE(2, 3) complain(int sev, const char *msg, ...)
 {
   va_list ap;
 
@@ -1111,7 +1111,7 @@ static void usage(FILE *fp)
 }
 
 static void version(FILE *fp)
-  { pquis(fp, "$, version " VERSION); }
+  { pquis(fp, "$, version " VERSION "\n"); }
 
 static void help(FILE *fp)
 {