From 8fc96e0a280211e7cdf0da5b685c1ec6b7668f78 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@fb.com>
Date: Sun, 28 Jun 2015 10:17:57 -0700
Subject: [PATCH 1/2] maint: factor.c: touch up preceding change

* src/factor.c (print_factors_single): Add a "const" attribute.
Make "n_out" a more faithful count of output bytes.
---
 src/factor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/factor.c b/src/factor.c
index 60cf898..5b73c90 100644
--- a/src/factor.c
+++ b/src/factor.c
@@ -2364,9 +2364,9 @@ print_factors_single (uintmax_t t1, uintmax_t t0)
       {
         char buf[INT_BUFSIZE_BOUND (uintmax_t)];
         putchar (' ');
-        char *umaxstr = umaxtostr (factors.p[j], buf);
+        char const *umaxstr = umaxtostr (factors.p[j], buf);
         fputs (umaxstr, stdout);
-        n_out += strlen (umaxstr) + 1;
+        n_out += 1 + strlen (umaxstr) + 1;
       }

   if (factors.plarge[1])
-- 
2.3.7

