From 9d1dfae26d69226f557ff1608395640a7bc92c2e Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Thu, 9 Jul 2015 06:57:32 +0000
Subject: [PATCH] Fix last commit... the "beginning of a line" is after the
 prefix.

---
 src/sbbs3/wordwrap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/wordwrap.c b/src/sbbs3/wordwrap.c
index 2b9f143f69..59dc417f19 100644
--- a/src/sbbs3/wordwrap.c
+++ b/src/sbbs3/wordwrap.c
@@ -376,14 +376,14 @@ fprintf(stderr, "CR\n");
 							continue;
 						}
 						else {		/* Not a hard CR... add space if needed */
-							if(ocol > 1 && (l<1 || !isspace((unsigned char)linebuf[l-1]))) {
+							if(ocol > prefix_len+1 && (l<1 || !isspace((unsigned char)linebuf[l-1]))) {
 								linebuf[l++]=' ';
 								ocol++;
 							}
 						}
 					}
 					else {			/* Not a hard CR... add space if needed */
-						if(ocol > 1 && (l<1 || !isspace((unsigned char)linebuf[l-1]))) {
+						if(ocol > prefix_len+1 && (l<1 || !isspace((unsigned char)linebuf[l-1]))) {
 							linebuf[l++]=' ';
 							ocol++;
 						}
-- 
GitLab