Avoid empty lines in the status output.
authorAndre Noll <maan@systemlinux.org>
Sun, 11 Nov 2007 19:22:56 +0000 (20:22 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 11 Nov 2007 19:22:56 +0000 (20:22 +0100)
aft.c
command.c

diff --git a/aft.c b/aft.c
index 57df793..292cabe 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -903,7 +903,7 @@ static int print_list_item(struct ls_data *d, struct ls_options *opts,
                        "%s: %lu\n" /* seconds total */
                        "%s: %d\n" /* num_played */
                        "%s: %s\n" /* last_played */
-                       "%s\n", /* tag info */
+                       "%s", /* tag info */
                        filename_lines,
                        have_score? status_item_list[SI_SCORE] : "",
                                have_score? ": " : "",
index bfa58e4..8bafcc0 100644 (file)
--- a/command.c
+++ b/command.c
@@ -120,7 +120,7 @@ static char *get_status(struct misc_meta_data *nmmd)
                "%s: %s\n" /* afs mode */
                "%s: %lu.%lu\n" /* stream start */
                "%s: %lu.%lu\n" /* current server time */
-               "%s\n", /* afs status info */
+               "%s", /* afs status info */
                status_item_list[SI_FILE_SIZE], nmmd->size / 1024,
                status_item_list[SI_MTIME], mtime,
                status_item_list[SI_STATUS], status,