aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Czigler <37268479+mcpcpc@users.noreply.github.com>2020-09-23 10:31:10 -0400
committerGitHub <noreply@github.com>2020-09-23 10:31:10 -0400
commit62c4b0c66d5e4c939aaabe7533ad04e0d22df426 (patch)
treec9f30a3614be6bc388355fac3e1c92d82e24a939
parentfix printw behavior, new gutl=20 (diff)
downloadkirc-62c4b0c66d5e4c939aaabe7533ad04e0d22df426.tar.gz
kirc-62c4b0c66d5e4c939aaabe7533ad04e0d22df426.tar.bz2
kirc-62c4b0c66d5e4c939aaabe7533ad04e0d22df426.tar.xz
kirc-62c4b0c66d5e4c939aaabe7533ad04e0d22df426.tar.zst
kirc-62c4b0c66d5e4c939aaabe7533ad04e0d22df426.zip
Update kirc.c
-rw-r--r--kirc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kirc.c b/kirc.c
index 834b8cc..21ba945 100644
--- a/kirc.c
+++ b/kirc.c
@@ -134,7 +134,7 @@ printw(const char *format, ...) {
spaceleft = cmax - (i - 1);
for(tok = strtok(&line[i], " "); tok != NULL; tok = strtok(NULL, " ")) {
- wordwidth = strlen(tok) - 1;
+ wordwidth = strlen(tok);
if ((wordwidth + spacewidth) > spaceleft) {
printf("\n%*.s%s ", (int) gutl + 1, " ", tok);