From 8c02d14f133947cce9bd9a051ca97a10171d8ee2 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 25 Nov 2018 09:38:58 +0100 Subject: [PATCH] undo the period-at-end fix for region info, a test breaks --- src/report.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/report.c b/src/report.c index 70f03b832..04e5408ad 100644 --- a/src/report.c +++ b/src/report.c @@ -1183,14 +1183,14 @@ void report_region(struct stream *out, const region * r, faction * f) if (wrptr(&bufp, &size, bytes) != 0) WARN_STATIC_BUFFER(); bytes = (int)str_strlcpy(bufp, "\")", size); + if (wrptr(&bufp, &size, bytes) != 0) + WARN_STATIC_BUFFER(); + bytes = (int)str_strlcpy(bufp, ".", size); if (wrptr(&bufp, &size, bytes) != 0) WARN_STATIC_BUFFER(); dh = 1; } } - bytes = (int)str_strlcpy(bufp, ".", size); - if (wrptr(&bufp, &size, bytes) != 0) - WARN_STATIC_BUFFER(); *bufp = 0; paragraph(out, buf, 0, 0, 0);