From 3da2c85181849571d62270ddf86306ea5e0d7482 Mon Sep 17 00:00:00 2001 From: Antti-Juhani Kaijanaho Date: Fri, 8 Jun 2012 22:45:31 +0300 Subject: lib/msg.c (msg_primitive): Write the period before the newline, not after! Signed-off-by: Antti-Juhani Kaijanaho --- debian/changelog | 3 ++- lib/msg.c | 4 ++-- tests/0010.err | 3 +-- tests/0011.err | 3 +-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index f4f56df..d68030a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,8 +9,9 @@ dctrl-tools (2.23) UNRELEASED; urgency=low mblen initialization calls, switch to using mbrlen in tbl-dctrl.c (a good idea in any case). * Add -Wextra to non-package builds (and clean up the resulting warnings). + * lib/msg.c (msg_primitive): Write the period before the newline, not after! - -- Antti-Juhani Kaijanaho Fri, 08 Jun 2012 19:42:51 +0300 + -- Antti-Juhani Kaijanaho Fri, 08 Jun 2012 22:38:22 +0300 dctrl-tools (2.22.2) unstable; urgency=low diff --git a/lib/msg.c b/lib/msg.c index 2216413..b9554fb 100644 --- a/lib/msg.c +++ b/lib/msg.c @@ -1,5 +1,5 @@ /* grep-dctrl - grep Debian control files - Copyright © 1999, 2004, 2008 Antti-Juhani Kaijanaho + Copyright © 1999, 2004, 2008, 2012 Antti-Juhani Kaijanaho This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -100,5 +100,5 @@ msg_primitive(const char *fname, int line, const char *fmt, va_list ap) fprintf(stderr, "%s: %s: ", get_progname(), fname); } vfprintf(stderr, fmt, ap); - fputs("\n.", stderr); + fputs(".\n", stderr); } diff --git a/tests/0010.err b/tests/0010.err index 4b9f606..eaff48a 100644 --- a/tests/0010.err +++ b/tests/0010.err @@ -1,2 +1 @@ -../grep-dctrl/grep-dctrl: -:3: expected a colon -. \ No newline at end of file +../grep-dctrl/grep-dctrl: -:3: expected a colon. diff --git a/tests/0011.err b/tests/0011.err index 5200d77..1c6e1ab 100644 --- a/tests/0011.err +++ b/tests/0011.err @@ -1,2 +1 @@ -../grep-dctrl/grep-dctrl: -:5: expected a colon -. \ No newline at end of file +../grep-dctrl/grep-dctrl: -:5: expected a colon. -- cgit v1.2.3